Fix escape in code sample

This commit is contained in:
Bruno Oliveira 2018-11-03 13:48:10 +00:00
parent 6befdf8b46
commit 1ec6805112
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class Python(object):
dumpfile = self.picklefile.dirpath("dump.py")
dumpfile.write(
textwrap.dedent(
r"""\
r"""
import pickle
f = open({!r}, 'wb')
s = pickle.dump({!r}, f, protocol=2)
@ -49,7 +49,7 @@ class Python(object):
loadfile = self.picklefile.dirpath("load.py")
loadfile.write(
textwrap.dedent(
r"""\
r"""
import pickle
f = open({!r}, 'rb')
obj = pickle.load(f)