From 66ba8c6e43b723e6748e30149cfb640c0e42bd6f Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Wed, 11 Nov 2020 00:11:00 -0800 Subject: [PATCH] black formatting --- isort/io.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/isort/io.py b/isort/io.py index a002bc89b..2f30be0c7 100644 --- a/isort/io.py +++ b/isort/io.py @@ -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