(self, **options)
| 194 | aliases = ['ipythontb'] |
| 195 | |
| 196 | def __init__(self, **options): |
| 197 | self.python3 = get_bool_opt(options, 'python3', False) |
| 198 | if self.python3: |
| 199 | self.aliases = ['ipython3tb'] |
| 200 | else: |
| 201 | self.aliases = ['ipython2tb', 'ipythontb'] |
| 202 | |
| 203 | if self.python3: |
| 204 | IPyLexer = IPython3Lexer |
| 205 | else: |
| 206 | IPyLexer = IPythonLexer |
| 207 | |
| 208 | DelegatingLexer.__init__(self, IPyLexer, |
| 209 | IPythonPartialTracebackLexer, **options) |
| 210 | |
| 211 | class IPythonConsoleLexer(Lexer): |
| 212 | """ |