From 8008eda4a856dd2e8c6dcae21d651d36ce52c683 2016-09-18 17:43:47 From: Matthias Bussonnier Date: 2016-09-18 17:43:47 Subject: [PATCH] Merge pull request #9953 from thesageinpilani/debugmagic corrected split with rsplit --- diff --git a/IPython/core/magics/execution.py b/IPython/core/magics/execution.py index 159169d..f445e8b 100644 --- a/IPython/core/magics/execution.py +++ b/IPython/core/magics/execution.py @@ -437,7 +437,7 @@ python-profiler package from non-free.""") def _debug_exec(self, code, breakpoint): if breakpoint: - (filename, bp_line) = breakpoint.split(':', 1) + (filename, bp_line) = breakpoint.rsplit(':', 1) bp_line = int(bp_line) else: (filename, bp_line) = (None, None)