From e11fa92d6372fe125be89f37ece71068f919f1c1 Mon Sep 17 00:00:00 2001 From: Morten Enemark Lund Date: Tue, 21 Aug 2018 14:15:35 +0200 Subject: [PATCH] pep8 --- setup.cfg | 1 + xonsh/pyghooks.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 3c63d2e3d..d3477c293 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,7 @@ flake8-max-line-length = 180 flake8-ignore = *.py E122 *.py E402 + *.py W503 # line break before binary operators is a good thing tests/tools.py E128 xonsh/pygments_cache.py ALL # flake8 gives incorrect unused import errors, F401 diff --git a/xonsh/pyghooks.py b/xonsh/pyghooks.py index e379e8acd..4e030abef 100644 --- a/xonsh/pyghooks.py +++ b/xonsh/pyghooks.py @@ -1342,9 +1342,8 @@ def pygments_style_by_name(name): return astyle - def _monkey_patch_pygments_codes(): - """ Monky patch pygments' dict of console codes, + """ Monky patch pygments' dict of console codes, with new color names """ import pygments.console @@ -1380,7 +1379,6 @@ def XonshTerminal256Formatter(): # Can be removed once pygment names get fixed. _monkey_patch_pygments_codes() - class XonshTerminal256FormatterProxy(terminal256.Terminal256Formatter): """Proxy class for xonsh terminal256 formatting that understands. xonsh color tokens.