зеркало из 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:
Родитель
75a83d636a
Коммит
9fa359b05c
|
@ -160,7 +160,7 @@ class Preprocessor:
|
||||||
except OSError as error:
|
except OSError as error:
|
||||||
if error.errno != errno.EEXIST:
|
if error.errno != errno.EEXIST:
|
||||||
raise
|
raise
|
||||||
self.out = open(options.output, 'w')
|
self.out = open(options.output, 'wb')
|
||||||
if defaultToStdin and len(args) == 0:
|
if defaultToStdin and len(args) == 0:
|
||||||
args = [sys.stdin]
|
args = [sys.stdin]
|
||||||
includes.extend(args)
|
includes.extend(args)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче