Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56177:feef0a4d2de0
Date: 2012-07-18 17:48 +0200
http://bitbucket.org/pypy/pypy/changeset/feef0a4d2de0/

Log:    another one

diff --git a/pypy/module/_sre/interp_sre.py b/pypy/module/_sre/interp_sre.py
--- a/pypy/module/_sre/interp_sre.py
+++ b/pypy/module/_sre/interp_sre.py
@@ -61,7 +61,7 @@
     # Returns a list of RPython-level integers.
     # Unlike the app-level groups() method, groups are numbered from 0
     # and the returned list does not start with the whole match range.
-    if num_groups == 0:
+    if num_groups <= 0:
         return None
     result = [-1] * (2*num_groups)
     mark = ctx.match_marks
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to