Parcourir la source

py3k-compatible next() used. Works with 2.6-2.7 as well.

Lukasz Langa il y a 14 ans
Parent
commit
8bcdb5b1dc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      radicale/ical.py

+ 1 - 1
radicale/ical.py

@@ -191,7 +191,7 @@ class Calendar(object):
             else:
                 if include_container:
                     result.append(cls(path, principal=True))
-                for f in os.walk(abs_path).next()[2]:
+                for f in next(os.walk(abs_path))[2]:
                     f_path = os.path.join(path, f)
                     if cls.is_vcalendar(os.path.join(abs_path, f)):
                         result.append(cls(f_path))