aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-10-31 13:45:37 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-10-31 13:52:31 -0400
commitdd98884bb43afdb64a21fc9e98f94f74572ab088 (patch)
tree0db254877e0c857e8cbc390a48bb6138894a1ad5 /scripts
parentccee189f99f8d62660051af1a3d8e997035f76d3 (diff)
downloadkutter-dd98884bb43afdb64a21fc9e98f94f74572ab088.tar.gz
kutter-dd98884bb43afdb64a21fc9e98f94f74572ab088.tar.xz
kutter-dd98884bb43afdb64a21fc9e98f94f74572ab088.zip
buildcommands: Use regular str() types for input on Python2
Avoid using unicode() types on Python2 as it can lead to subtle errors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildcommands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/buildcommands.py b/scripts/buildcommands.py
index 37e47f85..2acf3e84 100644
--- a/scripts/buildcommands.py
+++ b/scripts/buildcommands.py
@@ -453,7 +453,7 @@ def check_output(prog):
if retcode:
return ""
try:
- return output.decode()
+ return str(output.decode('utf8'))
except UnicodeError:
logging.debug("Exception on decode: %s" % (traceback.format_exc(),))
return ""