Skip to content

Commit 2e376f2

Browse files
authored
marvin: make deployDataCenter.py script py2/py3 compatible (#5139)
1 parent a8cfb77 commit 2e376f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/marvin/marvin/deployDataCenter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def __persistDcConfig(self):
7171
ts = strftime("%b_%d_%Y_%H_%M_%S", localtime())
7272
dc_file_path = "dc_entries_" + str(ts) + ".obj"
7373

74-
file_to_write = open(dc_file_path, 'w')
74+
file_to_write = open(dc_file_path, 'wb')
7575
if file_to_write:
76-
pickle.dump(self.__cleanUp, file_to_write)
76+
pickle.dump(self.__cleanUp, file_to_write, protocol=0)
7777
print("\n=== Data Center Settings are dumped to %s===" % dc_file_path)
7878
self.__tcRunLogger.debug("\n=== Data Center Settings are dumped to %s===" % dc_file_path)
7979
except Exception as e:

0 commit comments

Comments
 (0)