mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-10-03 17:10:13 -04:00
24 lines
1.1 KiB
Python
24 lines
1.1 KiB
Python
$NetBSD: patch-dot__parser.py,v 1.1 2014/01/19 20:15:43 wiz Exp $
|
|
|
|
_noncomma is obsoleted in the latest pyparsing, fix to work with all versions.
|
|
|
|
--- dot_parser.py.orig 2012-01-02 23:23:26.000000000 +0000
|
|
+++ dot_parser.py
|
|
@@ -25,7 +25,7 @@ from pyparsing import __version__ as pyp
|
|
from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, Upcase, 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 )
|
|
|
|
|
|
class P_AttrList:
|
|
@@ -414,6 +414,7 @@ def graph_definition():
|
|
|
|
double_quoted_string = QuotedString('"', multiline=True, unquoteResults=False) # dblQuotedString
|
|
|
|
+ _noncomma = "".join( [ c for c in printables if c != "," ] )
|
|
alphastring_ = OneOrMore(CharsNotIn(_noncomma + ' '))
|
|
|
|
def parse_html(s, loc, toks):
|