Skip to content

Commit 43c519e

Browse files
author
Alex
committed
Update file descriptor when writing
1 parent 6a6e973 commit 43c519e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shotgun_api3/lib/mockgun/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _read_file(cls, path):
110110

111111
@classmethod
112112
def _write_file(cls, data, path):
113-
fh = open(path, "rb")
113+
fh = open(path, "wb")
114114
try:
115115
return pickle.dump(data, fh, protocol=_HIGHEST_24_PICKLE_PROTOCOL)
116116
finally:

0 commit comments

Comments
 (0)