提交 9ed8c70a authored 作者: Maxim Kochurov's avatar Maxim Kochurov 提交者: Maxim Kochurov

remove deprecated printing api

上级 84a540f1
...@@ -4,7 +4,6 @@ import hashlib ...@@ -4,7 +4,6 @@ import hashlib
import logging import logging
import os import os
import sys import sys
import warnings
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from contextlib import contextmanager from contextlib import contextmanager
from copy import copy from copy import copy
...@@ -120,7 +119,6 @@ def debugprint( ...@@ -120,7 +119,6 @@ def debugprint(
print_destroy_map: bool = False, print_destroy_map: bool = False,
print_view_map: bool = False, print_view_map: bool = False,
print_fgraph_inputs: bool = False, print_fgraph_inputs: bool = False,
ids: Optional[IDTypesType] = None,
) -> Union[str, TextIO]: ) -> Union[str, TextIO]:
r"""Print a graph as text. r"""Print a graph as text.
...@@ -193,14 +191,6 @@ def debugprint( ...@@ -193,14 +191,6 @@ def debugprint(
else: else:
_file = file _file = file
if ids is not None:
warnings.warn(
"`ids` is deprecated; use `id_type` instead.",
DeprecationWarning,
stacklevel=2,
)
id_type = ids
if done is None: if done is None:
done = dict() done = dict()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论