(self, frame_lineno, prompt_prefix='\n-> ',
context=None)
| 362 | pass |
| 363 | |
| 364 | def print_stack_entry(self, frame_lineno, prompt_prefix='\n-> ', |
| 365 | context=None): |
| 366 | if context is None: |
| 367 | context = self.context |
| 368 | try: |
| 369 | context=int(context) |
| 370 | if context <= 0: |
| 371 | raise ValueError("Context must be a positive integer") |
| 372 | except (TypeError, ValueError): |
| 373 | raise ValueError("Context must be a positive integer") |
| 374 | print(self.format_stack_entry(frame_lineno, '', context), file=self.stdout) |
| 375 | |
| 376 | # vds: >> |
| 377 | frame, lineno = frame_lineno |
| 378 | filename = frame.f_code.co_filename |
| 379 | self.shell.hooks.synchronize_with_editor(filename, lineno, 0) |
| 380 | # vds: << |
| 381 | |
| 382 | def format_stack_entry(self, frame_lineno, lprefix=': ', context=None): |
| 383 | if context is None: |
no test coverage detected