1. Volker Birk
  2. pyPEG

Commits

Volker Birk  committed cfe527b

.

  • Participants
  • Parent commits 54aa990
  • Branches default

Comments (0)

Files changed (1)

File pypeg2/__init__.py

View file
  • Ignore whitespace
                     break
                 _min, _max = 1, 1
             if flag:
-                if len(L) == 0:
+                if len(L) > 1 or how_many(thing) > 1:
+                    result = t, L
+                elif not L:
                     return t, None
-                elif len(L) > 1 or how_many(thing) > 1:
-                    result = t, L
                 else:
                     result = t, L[0]
             else: