diff options
Diffstat (limited to 'http_prompt/cli.py')
-rw-r--r-- | http_prompt/cli.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/http_prompt/cli.py b/http_prompt/cli.py index b5d52a9..3b025fb 100644 --- a/http_prompt/cli.py +++ b/http_prompt/cli.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - import json from http.cookies import SimpleCookie from urllib.request import pathname2url, urlopen @@ -32,10 +30,6 @@ from .utils import smart_quote from .xdg import get_data_dir -# XXX: http://click.pocoo.org/python3/#unicode-literals -click.disable_unicode_literals_warning = True - - def fix_incomplete_url(url): if url.startswith(('s://', '://')): url = 'http' + url @@ -111,7 +105,7 @@ def cli(spec, env, url, http_options): if spec: f = urlopen(spec) try: - content = f.read().decode('utf-8') + content = f.read().decode() try: spec = json.loads(content) except json.JSONDecodeError: |