|
Lines 517-523
Link Here
|
| 517 |
|
517 |
|
| 518 |
if args: |
518 |
if args: |
| 519 |
for f in args: |
519 |
for f in args: |
| 520 |
with io.open(f, 'rU', encoding='utf-8') as input: |
520 |
with io.open(f, 'r', encoding='utf-8') as input: |
| 521 |
self.processFile(input=input, output=out) |
521 |
self.processFile(input=input, output=out) |
| 522 |
if depfile: |
522 |
if depfile: |
| 523 |
mk = Makefile() |
523 |
mk = Makefile() |
|
Lines 806-812
Link Here
|
| 806 |
args = self.applyFilters(args) |
806 |
args = self.applyFilters(args) |
| 807 |
if not os.path.isabs(args): |
807 |
if not os.path.isabs(args): |
| 808 |
args = os.path.join(self.curdir, args) |
808 |
args = os.path.join(self.curdir, args) |
| 809 |
args = io.open(args, 'rU', encoding='utf-8') |
809 |
args = io.open(args, 'r', encoding='utf-8') |
| 810 |
except Preprocessor.Error: |
810 |
except Preprocessor.Error: |
| 811 |
raise |
811 |
raise |
| 812 |
except Exception: |
812 |
except Exception: |
|
Lines 861-867
Link Here
|
| 861 |
pp = Preprocessor(defines=defines, |
861 |
pp = Preprocessor(defines=defines, |
| 862 |
marker=marker) |
862 |
marker=marker) |
| 863 |
for f in includes: |
863 |
for f in includes: |
| 864 |
with io.open(f, 'rU', encoding='utf-8') as input: |
864 |
with io.open(f, 'r', encoding='utf-8') as input: |
| 865 |
pp.processFile(input=input, output=output) |
865 |
pp.processFile(input=input, output=output) |
| 866 |
return pp.includes |
866 |
return pp.includes |
| 867 |
|
867 |
|