Skip to content

Commit

Permalink
back to old-style string-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgull committed Jul 27, 2013
1 parent fffe435 commit 06b13e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rdflib/plugins/sparql/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ def expandCollection(terms):

# [169] PN_LOCAL ::= (PN_CHARS_U | ':' | [0-9] | PLX ) ((PN_CHARS | '.' | ':' | PLX)* (PN_CHARS | ':' | PLX) )?

PN_LOCAL = Regex(ur"""([{PN_CHARS_U}:0-9]|{PLX})
(([{PN_CHARS}\.:]|{PLX})*
([{PN_CHARS}:]|{PLX}) )?""".format(PN_CHARS_U=PN_CHARS_U_re,
PN_LOCAL = Regex(ur"""([%(PN_CHARS_U)s:0-9]|%(PLX)s)
(([%(PN_CHARS)s\.:]|%(PLX)s)*
([%(PN_CHARS)s:]|%(PLX)s) )?"""%dict(PN_CHARS_U=PN_CHARS_U_re,
PN_CHARS=PN_CHARS_re,
PLX=PLX_re), flags=re.X|re.UNICODE)

Expand Down

0 comments on commit 06b13e6

Please sign in to comment.