aboutsummaryrefslogtreecommitdiff
path: root/scripts/threading_generator.py
diff options
context:
space:
mode:
authorJamie Madill <jmadill@chromium.org>2016-12-13 17:02:57 -0500
committerMark Lobodzinski <mark@lunarg.com>2016-12-19 13:38:07 -0700
commit840a6eed81ed80210e9be8776e31f9b46c579afc (patch)
treec7892f9f4b60f029fbe1c10d921e2189d94b21a2 /scripts/threading_generator.py
parent7fb8092deb772fbf321b70b384b0fc05cdfb5fd4 (diff)
downloadusermoji-840a6eed81ed80210e9be8776e31f9b46c579afc.tar.xz
layers: Make generators Python 2.7-compatible.
ANGLE and Chromium are fixed with Python 2.7, so we need to update the generator to something that is compatible with 2.7 and 3.2. The unicode handling is different between the two, so switch scripts to use unicode literals (u'txt' instead of 'txt'). Change-Id: I1570a45e302a09bb1f99eabc84f50b2ec599944d
Diffstat (limited to 'scripts/threading_generator.py')
-rw-r--r--scripts/threading_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/threading_generator.py b/scripts/threading_generator.py
index 0d0df12a..8dfdb7ef 100644
--- a/scripts/threading_generator.py
+++ b/scripts/threading_generator.py
@@ -325,7 +325,7 @@ class ThreadOutputGenerator(OutputGenerator):
self.newline()
#write('// endFeature looking at self.sections[command]', file=self.outFile)
if (self.sections['command']):
- write('\n'.join(self.sections['command']), end='', file=self.outFile)
+ write('\n'.join(self.sections['command']), end=u'', file=self.outFile)
self.newline()
if (self.featureExtraProtect != None):
write('#endif /*', self.featureExtraProtect, '*/', file=self.outFile)