Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Nov 11, 2020
1 parent 8c1158b commit 66ba8c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions isort/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def detect_encoding(filename: str, readline: Callable[[], bytes]):
def from_contents(contents: str, filename: str) -> "File":
encoding = File.detect_encoding(filename, BytesIO(contents.encode("utf-8")).readline)
return File( # type: ignore
stream=StringIO(contents),
path=Path(filename).resolve(),
encoding=encoding
stream=StringIO(contents), path=Path(filename).resolve(), encoding=encoding
)

@property
Expand Down

0 comments on commit 66ba8c6

Please sign in to comment.