1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Polish Python 2 removal (#1070)

This commit is contained in:
Mickaël Schoentgen
2021-05-27 13:05:41 +02:00
committed by GitHub
parent 264d45cdf5
commit 464b5b4c1d
9 changed files with 8 additions and 31 deletions

View File

@@ -1,10 +1,7 @@
# coding=utf-8
"""
Download mode implementation.
"""
from __future__ import division
import errno
import mimetypes
import os
@@ -131,7 +128,7 @@ def filename_from_url(url: str, content_type: Optional[str]) -> str:
else:
ext = mimetypes.guess_extension(content_type)
if ext == '.htm': # Python 3
if ext == '.htm':
ext = '.html'
if ext: