| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,14 +28,14 @@ class BPdb(pdb.Pdb): | |||
| 28 | 28 | """PDB with BPython support.""" | |
| 29 | 29 | ||
| 30 | 30 | def __init__(self, *args, **kwargs): | |
| 31 | - pdb.Pdb.__init__(self, *args, **kwargs) | ||
| 31 | + super().__init__(*args, **kwargs) | ||
| 32 | 32 | self.prompt = "(BPdb) " | |
| 33 | 33 | self.intro = 'Use "B" to enter bpython, Ctrl-d to exit it.' | |
| 34 | 34 | ||
| 35 | 35 | def postloop(self): | |
| 36 | 36 | # We only want to show the intro message once. | |
| 37 | 37 | self.intro = None | |
| 38 | - pdb.Pdb.postloop(self) | ||
| 38 | + super().postloop() | ||
| 39 | 39 | ||
| 40 | 40 | # cmd.Cmd commands | |
| 41 | 41 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1128,8 +1128,7 @@ def push(self, s: str, insert_into_history: bool = True) -> bool: | |||
| 1128 | 1128 | # curses.raw(True) prevents C-c from causing a SIGINT | |
| 1129 | 1129 | curses.raw(False) | |
| 1130 | 1130 | try: | |
| 1131 | - x: bool = repl.Repl.push(self, s, insert_into_history) | ||
| 1132 | - return x | ||
| 1131 | + return super().push(s, insert_into_history) | ||
| 1133 | 1132 | except SystemExit as e: | |
| 1134 | 1133 | # Avoid a traceback on e.g. quit() | |
| 1135 | 1134 | self.do_exit = True | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -938,7 +938,7 @@ def push(self, s, insert_into_history=True): | |||
| 938 | 938 | signal.signal(signal.SIGINT, signal.default_int_handler) | |
| 939 | 939 | # Pretty blindly adapted from bpython.cli | |
| 940 | 940 | try: | |
| 941 | - return repl.Repl.push(self, s, insert_into_history) | ||
| 941 | + return super().push(s, insert_into_history) | ||
| 942 | 942 | except SystemExit as e: | |
| 943 | 943 | self.exit_value = e.args | |
| 944 | 944 | raise urwid.ExitMainLoop() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments