-
-
Save anonymous/b209e0734e366ac1f9b2 to your computer and use it in GitHub Desktop.
Issue attachments for pydot/pydot-ng#97: https://github.com/pydot/pydot-ng/issues/97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: pydot.py | |
=================================================================== | |
--- pydot.py (revision 29) | |
+++ pydot.py (working copy) | |
@@ -27,10 +27,12 @@ | |
import subprocess | |
import tempfile | |
import copy | |
+import warnings | |
+ | |
try: | |
import dot_parser | |
except Exception, e: | |
- print "Couldn't import dot_parser, loading of dot files will not be possible." | |
+ warnings.warn("Couldn't import dot_parser, loading of dot files will not be possible.") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment