From 840a6eed81ed80210e9be8776e31f9b46c579afc Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Tue, 13 Dec 2016 17:02:57 -0500 Subject: 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 --- scripts/threading_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/threading_generator.py') 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) -- cgit v1.2.3