summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index b0c6a79..5606ee0 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -323,7 +323,7 @@ class Pickler:
else:
self.write(BINSTRING + s + object)
else:
- if unicode:
+ if unicode:
object = object.replace(u"\\", u"\\u005c")
object = object.replace(u"\n", u"\\u000a")
object = object.encode('raw-unicode-escape')
@@ -335,7 +335,7 @@ class Pickler:
self.write(self.put(memo_len))
memo[d] = (memo_len, object)
dispatch[StringType] = save_string
-
+
def save_tuple(self, object):
write = self.write