This commit is contained in:
Morten Enemark Lund 2018-08-21 14:15:35 +02:00
parent 3e00dc0c10
commit e11fa92d63
2 changed files with 2 additions and 3 deletions

View file

@ -3,6 +3,7 @@ flake8-max-line-length = 180
flake8-ignore = flake8-ignore =
*.py E122 *.py E122
*.py E402 *.py E402
*.py W503 # line break before binary operators is a good thing
tests/tools.py E128 tests/tools.py E128
xonsh/pygments_cache.py ALL xonsh/pygments_cache.py ALL
# flake8 gives incorrect unused import errors, F401 # flake8 gives incorrect unused import errors, F401

View file

@ -1342,9 +1342,8 @@ def pygments_style_by_name(name):
return astyle return astyle
def _monkey_patch_pygments_codes(): def _monkey_patch_pygments_codes():
""" Monky patch pygments' dict of console codes, """ Monky patch pygments' dict of console codes,
with new color names with new color names
""" """
import pygments.console import pygments.console
@ -1380,7 +1379,6 @@ def XonshTerminal256Formatter():
# Can be removed once pygment names get fixed. # Can be removed once pygment names get fixed.
_monkey_patch_pygments_codes() _monkey_patch_pygments_codes()
class XonshTerminal256FormatterProxy(terminal256.Terminal256Formatter): class XonshTerminal256FormatterProxy(terminal256.Terminal256Formatter):
"""Proxy class for xonsh terminal256 formatting that understands. """Proxy class for xonsh terminal256 formatting that understands.
xonsh color tokens. xonsh color tokens.