summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-06-25 22:25:50 -0500
committerBryan Bishop <kanzure@gmail.com>2013-06-25 22:25:50 -0500
commitb710b8721eb12db39ba0413fdaede654999a426a (patch)
treeb50ff1a63bf8dba8f82b27f9c11574bfe3afd6de
parentad6e271dec7ac0d23a8e140a6fb7efabe094f5eb (diff)
don't mix tabs/whitespace
-rw-r--r--preprocessor.py2
-rw-r--r--prequeue.py11
2 files changed, 6 insertions, 7 deletions
diff --git a/preprocessor.py b/preprocessor.py
index 468ae41a5..242732094 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -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:
diff --git a/prequeue.py b/prequeue.py
index 156d3e942..c90d133ea 100644
--- a/prequeue.py
+++ b/prequeue.py
@@ -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()