summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-19 10:34:43 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-19 10:34:43 +0100
commit4ffb6aef6f75f87505298ff3e4b1a37bd77febed (patch)
tree62c19b95dd8e5f6f4395ee163b3f3d9c589c69eb
parentba4fd231e339bde0cd354194b51976513e4e8aa6 (diff)
Can't use the encoding parameter to Popen as it's Python 3.6+ only.v1.8.43
-rw-r--r--wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript b/wscript
index 41b6ea6a..e05252d4 100644
--- a/wscript
+++ b/wscript
@@ -40,8 +40,8 @@ from waflib import Logs, Context
APPNAME = 'libdcp'
-this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE, encoding='UTF-8').communicate()[0]
-last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE, encoding='UTF-8').communicate()[0]
+this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0].encode('UTF-8')
+last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE).communicate()[0].encode('UTF-8')
if this_version == '':
VERSION = '%sdevel' % last_version[1:].strip()