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