Skip to content

Instantly share code, notes, and snippets.

/patch.txt Secret

Created March 8, 2015 15:40
Show Gist options
  • Save anonymous/b209e0734e366ac1f9b2 to your computer and use it in GitHub Desktop.
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
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