diff --git a/src/git/install.py b/src/git/install.py index 3516595b..6a24ee6c 100644 --- a/src/git/install.py +++ b/src/git/install.py @@ -16,7 +16,7 @@ def do_vcs_install(versionfile_source, ipy): if "VERSIONEER_PEP518" not in globals(): try: my_path = __file__ - if my_path.endswith(".pyc") or my_path.endswith(".pyo"): + if my_path.endswith((".pyc", ".pyo")): my_path = os.path.splitext(my_path)[0] + ".py" versioneer_file = os.path.relpath(my_path) except NameError: