py3k-compatible next() used. Works with 2.6-2.7 as well.
This commit is contained in:
parent
e05e94a129
commit
8bcdb5b1dc
@ -191,7 +191,7 @@ class Calendar(object):
|
|||||||
else:
|
else:
|
||||||
if include_container:
|
if include_container:
|
||||||
result.append(cls(path, principal=True))
|
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)
|
f_path = os.path.join(path, f)
|
||||||
if cls.is_vcalendar(os.path.join(abs_path, f)):
|
if cls.is_vcalendar(os.path.join(abs_path, f)):
|
||||||
result.append(cls(f_path))
|
result.append(cls(f_path))
|
||||||
|
Loading…
Reference in New Issue
Block a user