From ecf968388b56eccfda9ea5f5abb4f8299476a4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Roztoc=CC=8Cil?= Date: Tue, 28 Feb 2012 17:14:31 +0100 Subject: [PATCH] Fixed __version__ and __doc__ import. Thanks, @FND. --- httpie/httpie.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/httpie/httpie.py b/httpie/httpie.py index 66f01026..651e5933 100755 --- a/httpie/httpie.py +++ b/httpie/httpie.py @@ -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.