From 8ddc568bd108ac286d1353f247f4c7bcb85fc74c 2011-11-05 21:36:20 From: Min Ragan-Kelley Date: 2011-11-05 21:36:20 Subject: [PATCH] use universal-newline in pickleshare This prevents entries (bookmarks) made in 0.11 on Windows from having an extra '\r' on all strings. closes gh-971 --- diff --git a/IPython/utils/pickleshare.py b/IPython/utils/pickleshare.py index 2a1658a..fe14a44 100755 --- a/IPython/utils/pickleshare.py +++ b/IPython/utils/pickleshare.py @@ -67,7 +67,7 @@ class PickleShareDB(collections.MutableMapping): return self.cache[fil][0] try: # The cached item has expired, need to read - obj = pickle.load(fil.open("rb")) + obj = pickle.loads(fil.open("rbU").read()) except: raise KeyError(key)