def __init__(self, **options): self.python3 = get_bool_opt(options, 'python3', False) if self.python3: self.aliases = ['ipython3tb'] else: self.aliases = ['ipython2tb', 'ipythontb'] if self.python3: IPyLexer = IPython3Lexer else: IPyLexer = IPythonLexer DelegatingLexer.__init__(self, IPyLexer, IPythonPartialTracebackLexer, **options)
def __init__(self, **options): self.python3 = get_bool_opt(options, 'python3', False) if self.python3: self.aliases = ['ipython3tb'] else: self.aliases = ['ipython2tb', 'ipythontb'] if self.python3: IPyLexer = IPython3Lexer else: IPyLexer = IPythonLexer DelegatingLexer.__init__(self, IPyLexer, IPythonPartialTracebackLexer, **options)