From 8bcdb5b1dc7374113c908dfadd3ec00f602b09f1 Mon Sep 17 00:00:00 2001 From: Lukasz Langa Date: Wed, 1 Jun 2011 14:22:15 +0200 Subject: [PATCH] py3k-compatible next() used. Works with 2.6-2.7 as well. --- radicale/ical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/ical.py b/radicale/ical.py index 61ec6cb..43be572 100644 --- a/radicale/ical.py +++ b/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))