提交 8d0e91a5 authored 作者: Frederic's avatar Frederic

Deprecat pydotprint_variables

上级 90c54457
...@@ -7,6 +7,7 @@ from copy import copy ...@@ -7,6 +7,7 @@ from copy import copy
import logging import logging
import os import os
import sys import sys
import warnings
# Not available on all platforms # Not available on all platforms
hashlib = None hashlib = None
...@@ -885,8 +886,15 @@ def pydotprint_variables(vars, ...@@ -885,8 +886,15 @@ def pydotprint_variables(vars,
high_contrast=True, colorCodes=None, high_contrast=True, colorCodes=None,
max_label_size=50, max_label_size=50,
var_with_name_simple=False): var_with_name_simple=False):
''' Identical to pydotprint just that it starts from a variable instead '''DEPRECATED: use pydotprint() instead.
of a compiled function. Could be useful ? '''
Identical to pydotprint just that it starts from a variable
instead of a compiled function. Could be useful ?
'''
warnings.warn("pydotprint_variables() is deprecated."
" Use pydotprint() instead.")
if colorCodes is None: if colorCodes is None:
colorCodes = default_colorCodes colorCodes = default_colorCodes
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论