$OpenBSD: patch-dot_parser_py,v 1.1 2016/03/13 08:12:14 shadchin Exp $
--- dot_parser.py.orig	Tue Jan  3 05:23:26 2012
+++ dot_parser.py	Wed Mar  2 15:52:33 2016
@@ -19,13 +19,17 @@ import glob
 import pydot
 import re
 import codecs
+import string
 
 from pyparsing import __version__ as pyparsing_version
 
-from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
+from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, OneOrMore, ZeroOrMore,
     Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums,
     restOfLine, cStyleComment, nums, alphanums, printables, empty, quotedString,
-    ParseException, ParseResults, CharsNotIn, _noncomma, dblQuotedString, QuotedString, ParserElement )
+    ParseException, ParseResults, CharsNotIn, dblQuotedString, QuotedString, ParserElement )
+
+printables = "".join( [ c for c in string.printable if c not in string.whitespace ] )
+_noncomma = "".join( [ c for c in printables if c != "," ] )
 
 
 class P_AttrList:
