diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2017-11-16 19:06:12 +0100 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2017-11-16 19:06:12 +0100 |
commit | 1e6511a88dfc6c284c13d1eb329e931b225e6952 (patch) | |
tree | 67b3bbf451a8d2e38972eca2a17403e1dfec531a /build | |
parent | 751bb894aa3524f6b54a8cd523f5ef4928361205 (diff) |
Replace get_contents() with get_text_contents()
Diffstat (limited to 'build')
-rw-r--r-- | build/qt4.py | 8 | ||||
-rw-r--r-- | build/qt5.py | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/build/qt4.py b/build/qt4.py index 675bfb67af..aaa6377342 100644 --- a/build/qt4.py +++ b/build/qt4.py @@ -165,7 +165,7 @@ class _Automoc: if h: if moc_options['debug']: print("scons: qt4: Scanning '%s' (header of '%s')" % (str(h), str(cpp))) - h_contents = h.get_contents() + h_contents = h.get_text_contents() if moc_options['gobble_comments']: h_contents = self.ccomment.sub('', h_contents) h_contents = self.cxxcomment.sub('', h_contents) @@ -233,7 +233,7 @@ class _Automoc: if h: if moc_options['debug']: print("scons: qt4: Scanning '%s' (header of '%s')" % (str(h), str(cpp))) - h_contents = h.get_contents() + h_contents = h.get_text_contents() if moc_options['gobble_comments']: h_contents = self.ccomment.sub('', h_contents) h_contents = self.cxxcomment.sub('', h_contents) @@ -316,7 +316,7 @@ class _Automoc: # c or fortran source continue try: - cpp_contents = cpp.get_contents() + cpp_contents = cpp.get_text_contents() if moc_options['gobble_comments']: cpp_contents = self.ccomment.sub('', cpp_contents) cpp_contents = self.cxxcomment.sub('', cpp_contents) @@ -389,7 +389,7 @@ def __scanResources(node, env, path, arg): else: result.append(itemPath) return result - contents = node.get_contents() + contents = node.get_text_contents() includes = qrcinclude_re.findall(contents) qrcpath = os.path.dirname(node.path) dirs = [included for included in includes if os.path.isdir(os.path.join(qrcpath,included))] diff --git a/build/qt5.py b/build/qt5.py index cc83c5134b..25a3f9d6f2 100644 --- a/build/qt5.py +++ b/build/qt5.py @@ -191,7 +191,7 @@ class _Automoc: if h: if moc_options['debug']: print("scons: qt5: Scanning '%s' (header of '%s')" % (str(h), str(cpp))) - h_contents = h.get_contents() + h_contents = h.get_text_contents() if moc_options['gobble_comments']: h_contents = self.ccomment.sub('', h_contents) h_contents = self.cxxcomment.sub('', h_contents) @@ -259,7 +259,7 @@ class _Automoc: if h: if moc_options['debug']: print("scons: qt5: Scanning '%s' (header of '%s')" % (str(h), str(cpp))) - h_contents = h.get_contents() + h_contents = h.get_text_contents() if moc_options['gobble_comments']: h_contents = self.ccomment.sub('', h_contents) h_contents = self.cxxcomment.sub('', h_contents) @@ -342,7 +342,7 @@ class _Automoc: # c or fortran source continue try: - cpp_contents = cpp.get_contents() + cpp_contents = cpp.get_text_contents() if moc_options['gobble_comments']: cpp_contents = self.ccomment.sub('', cpp_contents) cpp_contents = self.cxxcomment.sub('', cpp_contents) @@ -415,7 +415,7 @@ def __scanResources(node, env, path, arg): else: result.append(itemPath) return result - contents = node.get_contents() + contents = node.get_text_contents() includes = qrcinclude_re.findall(contents) qrcpath = os.path.dirname(node.path) dirs = [included for included in includes if os.path.isdir(os.path.join(qrcpath,included))] |