Permalink
Browse files

cleanup Compiler.find_matches

  • Loading branch information...
1 parent 0ccd920 commit 96e74b13a4381dbc833c27f10be82663cf75ed91 @dwiel committed Feb 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 SimpleSPARQL/Compiler.py
View
@@ -226,8 +226,8 @@ def find_matches(self, value, qvalue) :
except sre_constants.error, e :
raise Exception(str(e) + " - '%s', '%s'" % ('^%s$' % regex, qvalue))
if g :
- #self.debugp('r', regex, qvalue, {var : g.group(var) for var in vars})
- return {var : g.group(var) for var in vars}
+ #return {var : g.group(var) for var in vars}
+ return g.groupdict()
def string_matches(self, value, qvalue) :
return self.find_matches(value, qvalue) != None

0 comments on commit 96e74b1

Please sign in to comment.