mirror of
https://github.com/httpie/cli.git
synced 2025-01-12 16:48:32 +01:00
PEP-8
This commit is contained in:
parent
bced559496
commit
d89eeb0796
@ -3,15 +3,19 @@ CLI argument parsing logic.
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import json
|
|
||||||
import re
|
import re
|
||||||
|
import json
|
||||||
|
import argparse
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
except ImportError:
|
except ImportError:
|
||||||
OrderedDict = dict
|
OrderedDict = dict
|
||||||
import argparse
|
|
||||||
from requests.structures import CaseInsensitiveDict
|
from requests.structures import CaseInsensitiveDict
|
||||||
|
|
||||||
from . import __version__
|
from . import __version__
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,10 +4,10 @@ import json
|
|||||||
import pygments
|
import pygments
|
||||||
|
|
||||||
from pygments.util import ClassNotFound
|
from pygments.util import ClassNotFound
|
||||||
|
from pygments.styles import get_style_by_name, STYLE_MAP
|
||||||
from pygments.lexers import get_lexer_for_mimetype, HttpLexer
|
from pygments.lexers import get_lexer_for_mimetype, HttpLexer
|
||||||
from pygments.formatters.terminal256 import Terminal256Formatter
|
from pygments.formatters.terminal256 import Terminal256Formatter
|
||||||
from pygments.formatters.terminal import TerminalFormatter
|
from pygments.formatters.terminal import TerminalFormatter
|
||||||
from pygments.styles import get_style_by_name, STYLE_MAP
|
|
||||||
|
|
||||||
from . import solarized
|
from . import solarized
|
||||||
|
|
||||||
|
@ -27,7 +27,8 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
from pygments.style import Style
|
from pygments.style import Style
|
||||||
from pygments.token import Token, Comment, Name, Keyword, Generic, Number, Operator, String
|
from pygments.token import (Token, Comment, Name, Keyword, Generic, Number,
|
||||||
|
Operator, String)
|
||||||
|
|
||||||
|
|
||||||
BASE03 = '#002B36'
|
BASE03 = '#002B36'
|
||||||
|
Loading…
Reference in New Issue
Block a user