From 39a4014a958450b2ac185e3d32e665f6bc0ca6d1 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 22 Apr 2012 14:30:55 +0200 Subject: [PATCH] compatibility file mainly for python 2.5 --- _compatibility.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 _compatibility.py diff --git a/_compatibility.py b/_compatibility.py new file mode 100644 index 00000000..67b5be8d --- /dev/null +++ b/_compatibility.py @@ -0,0 +1,7 @@ + +# python2.5 compatibility +try: + next = next +except NameError: + def next(obj): + return obj.next()