aboutsummaryrefslogtreecommitdiff
path: root/potpourri/ca-unpickle.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-04-28 01:14:41 +0000
committerRob Austein <sra@hactrn.net>2016-04-28 01:14:41 +0000
commit26559b823b01d174f01e2986740e18cd76d2e8d9 (patch)
treea6605db50d30f8023189714f79d0b94743eae396 /potpourri/ca-unpickle.py
parent319916e90e1b1f6328effbc7cd9acf74c38c1842 (diff)
dict() of dict()s turns out to be easier to work with than a single
layer dict() with a tuple key. svn path=/trunk/; revision=6397
Diffstat (limited to 'potpourri/ca-unpickle.py')
-rwxr-xr-xpotpourri/ca-unpickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/potpourri/ca-unpickle.py b/potpourri/ca-unpickle.py
index dbbe3e8a..5f255d8f 100755
--- a/potpourri/ca-unpickle.py
+++ b/potpourri/ca-unpickle.py
@@ -20,7 +20,7 @@ args = parser.parse_args()
xzcat = subprocess.Popen(("xzcat", args.input), stdout = subprocess.PIPE)
world = cPickle.load(xzcat.stdout)
if xzcat.wait() != 0:
- sys.exit("XZ unpickling failed with code {}".format(xz.returncode))
+ sys.exit("XZ unpickling failed with code {}".format(xzcat.returncode))
print "import datetime"
print "world =", repr(world)