chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
def read_pickle(file_name):
|
||||
import pickle
|
||||
|
||||
with open(file_name, "rb") as f:
|
||||
return pickle.load(f)
|
||||
|
||||
|
||||
def write_pickle(file_name, obj):
|
||||
import pickle
|
||||
|
||||
with open(file_name, "wb") as f:
|
||||
pickle.dump(obj, f)
|
||||
Reference in New Issue
Block a user