mercurial/fileset.py
branchstable
changeset 20208 61a47fd64f30
parent 19470 19ac0d8ee9a2
child 20209 174d9b8baf5d
--- a/mercurial/fileset.py	Wed Dec 04 13:42:28 2013 -0600
+++ b/mercurial/fileset.py	Sat Dec 21 12:44:19 2013 +0900
@@ -78,7 +78,9 @@
         pos += 1
     yield ('end', None, pos)
 
-parse = parser.parser(tokenize, elements).parse
+def parse(expr):
+    p = parser.parser(tokenize, elements)
+    return p.parse(expr)
 
 def getstring(x, err):
     if x and (x[0] == 'string' or x[0] == 'symbol'):