From 93d9e7b73e7582b9651ab567a69b3ac1c3cb624e Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Tue, 17 Oct 2023 18:09:24 +0200 Subject: [PATCH] Run isort on it as well --- dahuffman/__init__.py | 6 +++--- dahuffman/huffmancodec.py | 9 ++++----- tests/test_dahuffman.py | 3 +-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/dahuffman/__init__.py b/dahuffman/__init__.py index 553fdac..d42bff1 100644 --- a/dahuffman/__init__.py +++ b/dahuffman/__init__.py @@ -1,8 +1,8 @@ -from dahuffman.huffmancodec import HuffmanCodec from dahuffman.codecs import ( - load_shakespeare, - load_shakespeare_lower, load_json, load_json_compact, + load_shakespeare, + load_shakespeare_lower, load_xml, ) +from dahuffman.huffmancodec import HuffmanCodec diff --git a/dahuffman/huffmancodec.py b/dahuffman/huffmancodec.py index 373b010..997fd09 100644 --- a/dahuffman/huffmancodec.py +++ b/dahuffman/huffmancodec.py @@ -1,13 +1,12 @@ import collections import itertools -from io import IOBase -import sys -from heapq import heappush, heappop, heapify - import logging import pickle +import sys +from heapq import heapify, heappop, heappush +from io import IOBase from pathlib import Path -from typing import Union, Any, Callable, Iterator, Optional, Mapping, Iterable +from typing import Any, Callable, Iterable, Iterator, Mapping, Optional, Union _log = logging.getLogger(__name__) diff --git a/tests/test_dahuffman.py b/tests/test_dahuffman.py index e62ee9c..a1a1405 100644 --- a/tests/test_dahuffman.py +++ b/tests/test_dahuffman.py @@ -7,8 +7,7 @@ import pytest from dahuffman import HuffmanCodec -from dahuffman.huffmancodec import PrefixCodec, _EOF - +from dahuffman.huffmancodec import _EOF, PrefixCodec # TODO test streaming