mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
Apply Python 3 futurize transform libfuturize.fixes.fix_next_call.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user