@@ -36,16 +36,16 @@ class BPythonFormatter(Formatter):
3636 them into the appropriate format string
3737 as defined above, then writes to the outfile
3838 object the final formatted string. This does not write real strings. It writes format string (FmtStr) objects.
39-
39+
4040 See the Pygments source for more info; it's pretty
4141 straightforward."""
42-
42+
4343 def __init__ (self , color_scheme , ** options ):
4444 self .f_strings = {}
4545 for k , v in color_scheme .iteritems ():
4646 self .f_strings [k ] = '\x01 %s' % (v ,)
4747 Formatter .__init__ (self , ** options )
48-
48+
4949 def format (self , tokensource , outfile ):
5050 o = ''
5151
@@ -54,7 +54,7 @@ def format(self, tokensource, outfile):
5454 token = token .parent
5555 o += "%s\x03 %s\x04 " % (self .f_strings [token ], text )
5656 outfile .write (parse (o .rstrip ()))
57-
57+
5858class Interp (code .InteractiveInterpreter ):
5959 def __init__ (self , locals = None ):
6060 """Constructor.
@@ -128,7 +128,6 @@ def showtraceback(self):
128128 lexer = get_lexer_by_name ("pytb" , stripall = True )
129129
130130 self .format (tbtext ,lexer )
131-
132131
133132 def format (self , tbtext , lexer ):
134133 traceback_informative_formatter = BPythonFormatter (default_colors )
0 commit comments