Try to fix capsys issue with Python 3.8

This commit is contained in:
grossmj committed 2020-06-16 20:56:10 +09:30
1 parent d33584a2e4
commit 241caa1ec7
3 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ if "dev" in __version__:
import os
import subprocess
if os.path.exists(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".git")):
r = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode().strip("\n")
r = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode().strip()
__version__ += "-" + r
except Exception as e:
print(e)