Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d9f2d9

Browse files
committed
Backport PR ipython#2783: Prefilter shouldn't touch execution_count
Having gone through the various things that can call it, I'm pretty sure that there's no need for prefilter to be modifying the execution/prompt counter. And in testing, I can't construct an example that hits this bit of code. If we agree on this, it supersedes ipython#2623.
1 parent b7de089 commit 1d9f2d9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

IPython/core/prefilter.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,6 @@ def prefilter_line(self, line, continue_prompt=False):
323323

324324
normal_handler = self.get_handler_by_name('normal')
325325
if not stripped:
326-
if not continue_prompt:
327-
self.shell.displayhook.prompt_count -= 1
328-
329326
return normal_handler.handle(line_info)
330327

331328
# special handlers are only allowed for single line statements

0 commit comments

Comments
 (0)