зеркало из https://github.com/mozilla/gecko-dev.git
Bug 921751 Make Preprocessor.py's -o option honour requested newline type r=ted
This commit is contained in:
Родитель
8aa6756434
Коммит
997153eebe
|
@ -160,7 +160,7 @@ class Preprocessor:
|
|||
except OSError as error:
|
||||
if error.errno != errno.EEXIST:
|
||||
raise
|
||||
self.out = open(options.output, 'w')
|
||||
self.out = open(options.output, 'wb')
|
||||
if defaultToStdin and len(args) == 0:
|
||||
args = [sys.stdin]
|
||||
includes.extend(args)
|
||||
|
|
|
@ -160,7 +160,7 @@ class Preprocessor:
|
|||
except OSError as error:
|
||||
if error.errno != errno.EEXIST:
|
||||
raise
|
||||
self.out = open(options.output, 'w')
|
||||
self.out = open(options.output, 'wb')
|
||||
if defaultToStdin and len(args) == 0:
|
||||
args = [sys.stdin]
|
||||
includes.extend(args)
|
||||
|
|
Загрузка…
Ссылка в новой задаче