don't mix tabs/whitespace

This commit is contained in:
Bryan Bishop 2013-06-25 22:25:50 -05:00
parent ad6e271dec
commit b710b8721e
2 changed files with 6 additions and 7 deletions

View File

@ -579,7 +579,7 @@ def read_line(l):
# export all labels
if ':' in asm[:asm.find('"')]:
sys.stdout.write('GLOBAL ' + asm.split(':')[0] + '\n')
sys.stdout.write('GLOBAL ' + asm.split(':')[0] + '\n')
# expect preprocessed .asm files
if "INCLUDE" in asm:

View File

@ -9,9 +9,8 @@ import sys
import preprocessor
if __name__ == '__main__':
for source in sys.argv[1:]:
dest = os.path.splitext(source)[0] + '.tx'
sys.stdin = open(source, 'r')
sys.stdout = open(dest, 'w')
preprocessor.preprocess()
for source in sys.argv[1:]:
dest = os.path.splitext(source)[0] + '.tx'
sys.stdin = open(source, 'r')
sys.stdout = open(dest, 'w')
preprocessor.preprocess()