From 1e6511a88dfc6c284c13d1eb329e931b225e6952 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Thu, 16 Nov 2017 19:06:12 +0100 Subject: Replace get_contents() with get_text_contents() --- build/qt5.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build/qt5.py') 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))] -- cgit v1.2.3