Apply Python 3 futurize transform libfuturize.fixes.fix_next_call.

This commit is contained in:
Tim Abbott 2015-11-01 08:10:58 -08:00
parent 9b9ca80fab
commit 27981480a2

View file

@ -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