OSDN Git Service

Open stack pickle file in binary mode.
authorSimon Forman <sforman@hushmail.com>
Fri, 24 Apr 2020 17:10:30 +0000 (10:10 -0700)
committerSimon Forman <sforman@hushmail.com>
Fri, 24 Apr 2020 17:10:30 +0000 (10:10 -0700)
joy/gui/world.py

index f0231b0..29f1112 100644 (file)
@@ -148,5 +148,5 @@ class StackDisplayWorld(World):
 
   def load_stack(self):
     if os.path.exists(self.filename):
-      with open(self.filename) as f:
+      with open(self.filename, 'rb') as f:
         return pickle.load(f)