mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 07:43:20 +01:00
Fixed __version__ and __doc__ import. Thanks, @FND.
This commit is contained in:
parent
b0cebd68a1
commit
ecf968388b
@ -7,9 +7,11 @@ from collections import namedtuple
|
|||||||
import requests
|
import requests
|
||||||
from requests.structures import CaseInsensitiveDict
|
from requests.structures import CaseInsensitiveDict
|
||||||
from . import pretty
|
from . import pretty
|
||||||
|
from . import __version__ as version
|
||||||
|
from . import __doc__ as doc
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_UA = 'HTTPie/%s' % __version__
|
DEFAULT_UA = 'HTTPie/%s' % version
|
||||||
SEP_COMMON = ':'
|
SEP_COMMON = ':'
|
||||||
SEP_DATA = '='
|
SEP_DATA = '='
|
||||||
TYPE_FORM = 'application/x-www-form-urlencoded; charset=utf-8'
|
TYPE_FORM = 'application/x-www-form-urlencoded; charset=utf-8'
|
||||||
@ -38,7 +40,7 @@ class KeyValueType(object):
|
|||||||
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description=__doc__.strip())
|
description=doc.strip())
|
||||||
|
|
||||||
|
|
||||||
# Content type.
|
# Content type.
|
||||||
|
Loading…
Reference in New Issue
Block a user