Skip to content

Commit 3510efc

Browse files
committed
Use super
1 parent e248821 commit 3510efc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bpython/repl.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ def __init__(self, locals=None, encoding=None):
110110
sys.modules["__main__"] = main_mod = ModuleType("__main__")
111111
locals = main_mod.__dict__
112112

113-
# Unfortunately code.InteractiveInterpreter is a classic class, so no
114-
# super()
115-
code.InteractiveInterpreter.__init__(self, locals)
113+
super().__init__(locals)
116114
self.timer = RuntimeTimer()
117115

118116
def reset_running_time(self):

0 commit comments

Comments
 (0)