Skip to content

Commit

Permalink
Issue/948 (#949)
Browse files Browse the repository at this point in the history
* Implement fix for stream processing on Python 2.7

* Bump version for immediate distribution

* Add change-set and release date to changelog
  • Loading branch information
timothycrosley committed May 15, 2019
1 parent 700536e commit a44d0cd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,9 @@
Changelog
=========

### 4.3.20 - May 14, 2019 - hot fix release
- Fixed issue #948 - Pipe redirection broken on Python2.7

### 4.3.19 - May 12, 2019 - hot fix release
- Fixed issue #942 - correctly handle pyi (Python Template Files) to match `black` output

Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Expand Up @@ -6,6 +6,7 @@ init:
build: off

install:
- python -m pip install --upgrade pip
- pip install tox

test_script:
Expand Down
2 changes: 1 addition & 1 deletion isort/__init__.py
Expand Up @@ -25,4 +25,4 @@
from . import settings # noqa: F401
from .isort import SortImports # noqa: F401

__version__ = "4.3.19"
__version__ = "4.3.20"
2 changes: 1 addition & 1 deletion isort/isort.py
Expand Up @@ -140,7 +140,7 @@ def __init__(self, file_path=None, file_contents=None, file_=None, write_to_stdo
file_.seek(0)
self.file_encoding = coding_check(file_)
file_.seek(0)
except io.UnsupportedOperation:
except (io.UnsupportedOperation, IOError):
pass
reader = codecs.getreader(self.file_encoding)
file_contents = reader(file_).read()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -6,7 +6,7 @@
readme = f.read()

setup(name='isort',
version='4.3.19',
version='4.3.20',
description='A Python utility / library to sort Python imports.',
long_description=readme,
author='Timothy Crosley',
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -8,6 +8,7 @@ envlist =
[testenv]
deps =
pytest
pip==19.1.1
extras =
pipfile
pyproject
Expand Down

0 comments on commit a44d0cd

Please sign in to comment.