From c75c85861ba9652bdba3c265e2254357cd4e9f7c 2011-03-21 19:33:26 From: Thomas Kluyver Date: 2011-03-21 19:33:26 Subject: [PATCH] Tweak to history_manager.store_inputs to pass tests. --- diff --git a/IPython/core/history.py b/IPython/core/history.py index 7b5839a..784bb8e 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -308,8 +308,8 @@ class HistoryManager(Configurable): """ if source_raw is None: source_raw = source - source = source.rstrip() - source_raw = source_raw.rstrip() + source = source.rstrip('\n') + source_raw = source_raw.rstrip('\n') # do not store exit/quit commands if source_raw.strip() in self._exit_commands: