Skip to content

Commit 0c43e4e

Browse files
committed
[setup.py] Update to latest Python 2&3 compatible format
1 parent c7073c3 commit 0c43e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def to_funcs(*paths):
4040
if __name__ == "__main__":
4141
with open(path.join(package_name, "__init__.py")) as f:
4242
__author__, __version__ = map(
43-
lambda const: const.value if version_info > (3, 6) else const.s,
43+
lambda const: const.value if hasattr(const, "value") else const.s,
4444
map(
4545
attrgetter("value"),
4646
map(

0 commit comments

Comments
 (0)