Commits

Christopher Grebs committed 372f293

python 2.4 compatibility, fixes #20

  • Participants
  • Parent commits 9123bc5
  • Branches lodgeit

Comments (0)

Files changed (1)

File lodgeit/lib/diff.py

 import re
 import time
 from cgi import escape
+try:
+    all
+except NameError:
+    def all(iterable):
+        for element in iterable:
+            if not element:
+                return False
+        return True
 
 
 def prepare_udiff(udiff):