summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-08-24 22:19:14 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-08-24 22:19:14 (GMT)
commitecb0e776746503141b7a1b970256e380156739d7 (patch)
treebd18b91becf2d7db700eca20cb18c042a4044e8a /src/engine/SCons/Tool
parentc0267abfae58e329ecb622ffe9853716e575e701 (diff)
downloadSCons-ecb0e776746503141b7a1b970256e380156739d7.zip
SCons-ecb0e776746503141b7a1b970256e380156739d7.tar.gz
SCons-ecb0e776746503141b7a1b970256e380156739d7.tar.bz2
PY2/3 get_contents() was returning empty string instead of empty bytes when file doesn't exist. get_text_contents() was then trying to call decode on a string object... Fixed. get_contents() now returns empty byte string
Diffstat (limited to 'src/engine/SCons/Tool')
-rw-r--r--src/engine/SCons/Tool/qt.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/qt.py b/src/engine/SCons/Tool/qt.py
index 5f99054..77269a8 100644
--- a/src/engine/SCons/Tool/qt.py
+++ b/src/engine/SCons/Tool/qt.py
@@ -144,6 +144,8 @@ class _Automoc(object):
# c or fortran source
continue
#cpp_contents = comment.sub('', cpp.get_text_contents())
+ if debug:
+ print("scons: qt: Getting contents of %s" % cpp)
cpp_contents = cpp.get_text_contents()
h=None
for h_ext in header_extensions: