@@ -121,7 +121,7 @@ def newfunc(self, *args, **kwargs):
121121 return newfunc
122122
123123
124- class FakeStream ( object ) :
124+ class FakeStream :
125125 """Provide a fake file object which calls functions on the interface
126126 provided."""
127127
@@ -147,7 +147,7 @@ def flush(self):
147147 self .interface .flush ()
148148
149149
150- class FakeStdin ( object ) :
150+ class FakeStdin :
151151 """Provide a fake stdin type for things like raw_input() etc."""
152152
153153 def __init__ (self , interface ):
@@ -303,7 +303,7 @@ def make_colors(config):
303303
304304class CLIInteraction (repl .Interaction ):
305305 def __init__ (self , config , statusbar = None ):
306- super (CLIInteraction , self ).__init__ (config , statusbar )
306+ super ().__init__ (config , statusbar )
307307
308308 def confirm (self , q ):
309309 """Ask for yes or no and return boolean"""
@@ -323,7 +323,7 @@ def file_prompt(self, s):
323323
324324class CLIRepl (repl .Repl ):
325325 def __init__ (self , scr , interp , statusbar , config , idle = None ):
326- super (CLIRepl , self ).__init__ (interp , config )
326+ super ().__init__ (interp , config )
327327 self .interp .writetb = self .writetb
328328 self .scr = scr
329329 self .stdout_hist = "" # native str (bytes in Py2, unicode in Py3)
@@ -1527,7 +1527,7 @@ def send_current_line_to_editor(self):
15271527 return ""
15281528
15291529
1530- class Statusbar ( object ) :
1530+ class Statusbar :
15311531 """This class provides the status bar at the bottom of the screen.
15321532 It has message() and prompt() methods for user interactivity, as
15331533 well as settext() and clear() methods for changing its appearance.
@@ -1821,7 +1821,7 @@ def do_resize(caller):
18211821 # The list win resizes itself every time it appears so no need to do it here.
18221822
18231823
1824- class FakeDict ( object ) :
1824+ class FakeDict :
18251825 """Very simple dict-alike that returns a constant value for any key -
18261826 used as a hacky solution to using a colours dict containing colour codes if
18271827 colour initialisation fails."""
0 commit comments