Skip to content

Commit

Permalink
Use Protocol 2 for pickling so things will work with RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
r-barnes committed Jan 3, 2018
1 parent 427a041 commit a4c22d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/plot_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def render_figures(code, code_path, output_dir, output_base, context,

if cached:
try:
pickle.dump(results, open(cached+'.pickle', 'wb'))
pickle.dump(results, open(cached+'.pickle', 'wb'), protocol=2)
except Exception as err:
raise PlotError(traceback.format_exc())

Expand Down

0 comments on commit a4c22d1

Please sign in to comment.