Apply Python 3 futurize transform libfuturize.fixes.fix_next_call.
This commit is contained in:
parent
9b9ca80fab
commit
27981480a2
4
setup.py
4
setup.py
|
@ -9,8 +9,8 @@ import itertools
|
||||||
def version():
|
def version():
|
||||||
version_py = os.path.join(os.path.dirname(__file__), "zulip", "__init__.py")
|
version_py = os.path.join(os.path.dirname(__file__), "zulip", "__init__.py")
|
||||||
with open(version_py) as in_handle:
|
with open(version_py) as in_handle:
|
||||||
version_line = itertools.dropwhile(lambda x: not x.startswith("__version__"),
|
version_line = next(itertools.dropwhile(lambda x: not x.startswith("__version__"),
|
||||||
in_handle).next()
|
in_handle))
|
||||||
version = version_line.split('=')[-1].strip().replace('"', '')
|
version = version_line.split('=')[-1].strip().replace('"', '')
|
||||||
return version
|
return version
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue