shithub: pokecrystal

Download patch

ref: b710b8721eb12db39ba0413fdaede654999a426a
parent: ad6e271dec7ac0d23a8e140a6fb7efabe094f5eb
author: Bryan Bishop <[email protected]>
date: Tue Jun 25 18:25:50 EDT 2013

don't mix tabs/whitespace

--- a/preprocessor.py
+++ b/preprocessor.py
@@ -579,7 +579,7 @@
 
     # 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:
--- a/prequeue.py
+++ b/prequeue.py
@@ -9,9 +9,8 @@
 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()