mirror of
https://github.com/httpie/cli.git
synced 2024-11-25 01:03:27 +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
|
||||
from requests.structures import CaseInsensitiveDict
|
||||
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_DATA = '='
|
||||
TYPE_FORM = 'application/x-www-form-urlencoded; charset=utf-8'
|
||||
@ -38,7 +40,7 @@ class KeyValueType(object):
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
description=__doc__.strip())
|
||||
description=doc.strip())
|
||||
|
||||
|
||||
# Content type.
|
||||
|
Loading…
Reference in New Issue
Block a user