Skip to content

Commit

Permalink
Merge pull request #255 from twm/flake8-py3
Browse files Browse the repository at this point in the history
Fix flake8 failure on Python 3
  • Loading branch information
glyph committed Oct 3, 2019
2 parents 0365f25 + eb7fa2a commit 2d28bf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/treq/client.py
Expand Up @@ -341,7 +341,8 @@ def _guess_content_type(filename):
if not _PY3:
from StringIO import StringIO
registerAdapter(_from_file, StringIO, IBodyProducer)
registerAdapter(_from_file, file, IBodyProducer)
# Suppress lint failure on Python 3.
registerAdapter(_from_file, file, IBodyProducer) # noqa: F821
else:
import io
# file()/open() equiv on Py3
Expand Down

0 comments on commit 2d28bf5

Please sign in to comment.