зеркало из https://github.com/mozilla/bugbug.git
Use default pickle protocol
This commit is contained in:
Родитель
244df4e361
Коммит
67abf0d1ec
|
@ -802,9 +802,7 @@ def calculate_experiences(commits, first_pushdate, save=True):
|
|||
|
||||
if save:
|
||||
with open("data/commit_experiences.pickle", "wb") as f:
|
||||
pickle.dump(
|
||||
(experiences, first_commit_time), f, protocol=pickle.HIGHEST_PROTOCOL
|
||||
)
|
||||
pickle.dump((experiences, first_commit_time), f)
|
||||
|
||||
|
||||
def set_commits_to_ignore(repo_dir, commits):
|
||||
|
|
|
@ -28,7 +28,7 @@ def get_test_scheduling_history():
|
|||
def get_past_failures():
|
||||
return shelve.Shelf(
|
||||
LMDBDict("data/past_failures.lmdb"),
|
||||
protocol=pickle.HIGHEST_PROTOCOL,
|
||||
protocol=pickle.DEFAULT_PROTOCOL,
|
||||
writeback=True,
|
||||
)
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ class PastBugsCollector(object):
|
|||
}
|
||||
|
||||
with open("data/past_bugs_by_function.pickle", "wb") as f:
|
||||
pickle.dump(past_bugs_by_function, f, protocol=pickle.HIGHEST_PROTOCOL)
|
||||
pickle.dump(past_bugs_by_function, f)
|
||||
zstd_compress("data/past_bugs_by_function.pickle")
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче