Skip to content

Commit 072576a

Browse files
committed
Use super where possible
1 parent d9402cd commit 072576a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

bpython/curtsies.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ def __init__(self, config, locals_, banner, interp=None):
5858
with self.input_generator:
5959
pass # temp hack to get .original_stty
6060

61-
BaseRepl.__init__(self,
62-
locals_=locals_,
63-
config=config,
64-
banner=banner,
65-
interp=interp,
66-
orig_tcattrs=self.input_generator.original_stty)
61+
super(FullCurtsiesRepl, self).__init__(
62+
locals_=locals_,
63+
config=config,
64+
banner=banner,
65+
interp=interp,
66+
orig_tcattrs=self.input_generator.original_stty)
6767

6868
def get_term_hw(self):
6969
return self.window.get_term_hw()

bpython/curtsiesfrontend/interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, color_scheme, **options):
4949
self.f_strings = {}
5050
for k, v in iteritems(color_scheme):
5151
self.f_strings[k] = '\x01%s' % (v,)
52-
Formatter.__init__(self, **options)
52+
super(BPythonFormatter, self).__init__(**options)
5353

5454
def format(self, tokensource, outfile):
5555
o = ''
@@ -68,7 +68,7 @@ def __init__(self, locals=None, encoding=None):
6868
We include an argument for the outfile to pass to the formatter for it
6969
to write to.
7070
"""
71-
ReplInterpreter.__init__(self, locals, encoding)
71+
super(Interp, self).__init__(locals, encoding)
7272

7373
# typically changed after being instantiated
7474
# but used when interpreter used corresponding REPL

bpython/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(self, color_scheme, **options):
9696
# FIXME: Find a way to make this the inverse of the current
9797
# background colour
9898
self.f_strings[k] += 'I'
99-
Formatter.__init__(self, **options)
99+
super(BPythonFormatter, self).__init__(**options)
100100

101101
def format(self, tokensource, outfile):
102102
o = ''

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy