Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
Trim string from NL
  • Loading branch information
sergey-dryabzhinsky authored Jan 23, 2025
1 parent 6c6e6b3 commit a71f512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@
VERSION_STR=""
if sys.hexversion >= 0x02070000:
try:
VERSION_STR = subprocess.check_output(cmd)
VERSION_STR = subprocess.check_output(cmd).trim()
except:
pass
else:
# Pure Python 2.6
VERSION_STR = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
VERSION_STR = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0].trim()
if sys.hexversion >= 0x03000000:
# It's bytes in PY3
VERSION_STR = VERSION_STR.decode()
Expand Down

0 comments on commit a71f512

Please sign in to comment.