Scanner clearing was being done at the wrong point.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 17 Feb 2012 20:46:49 +0000 (15:46 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 17 Feb 2012 20:46:49 +0000 (15:46 -0500)
sst.py

diff --git a/sst.py b/sst.py
index e140f259a97cb64e1041c515e5010a49df41f352..db0ef8c69207ac63242132937541405a26a6c0c5 100755 (executable)
--- a/sst.py
+++ b/sst.py
@@ -5203,7 +5203,6 @@ def freeze(boss):
     if key != "IHALPHA":
         huh()
         return
-    scanner.chew()
     if '.' not in scanner.token:
         scanner.token += ".trk"
     try:
@@ -5213,6 +5212,7 @@ def freeze(boss):
        return
     cPickle.dump(game, fp)
     fp.close()
+    scanner.chew()
 
 def thaw():
     "Retrieve saved game."