aboutsummaryrefslogtreecommitdiff
path: root/potpourri/ca-unpickle.py
diff options
context:
space:
mode:
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)