From 27981480a22b566810209f01a4442096eeda99a3 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 1 Nov 2015 08:10:58 -0800 Subject: [PATCH] Apply Python 3 futurize transform libfuturize.fixes.fix_next_call. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 129303d..fd934ea 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,8 @@ import itertools def version(): version_py = os.path.join(os.path.dirname(__file__), "zulip", "__init__.py") with open(version_py) as in_handle: - version_line = itertools.dropwhile(lambda x: not x.startswith("__version__"), - in_handle).next() + version_line = next(itertools.dropwhile(lambda x: not x.startswith("__version__"), + in_handle)) version = version_line.split('=')[-1].strip().replace('"', '') return version