*: remove unused imports
authorRobin Ole Heinemann <robin.ole.heinemann@gmail.com>
Tue, 18 May 2021 18:39:57 +0000 (20:39 +0200)
committerwhitequark <whitequark@whitequark.org>
Tue, 18 May 2021 20:18:55 +0000 (20:18 +0000)
16 files changed:
examples/basic/ctr_en.py
nmigen/_utils.py
nmigen/back/rtlil.py
nmigen/compat/genlib/roundrobin.py
nmigen/hdl/ast.py
nmigen/hdl/dsl.py
nmigen/hdl/ir.py
nmigen/hdl/rec.py
nmigen/hdl/xfrm.py
nmigen/lib/cdc.py
nmigen/lib/fifo.py
nmigen/sim/_pyclock.py
nmigen/test/utils.py
tests/compat/test_fsm.py
tests/test_sim.py
tests/utils.py

index d5e327911dbef760c6c23a35b63d0a63596ef92c..ba637374652c2cada6e904b0a3657445ed916dcf 100644 (file)
@@ -1,6 +1,6 @@
 from nmigen import *
 from nmigen.sim import *
-from nmigen.back import rtlil, verilog
+from nmigen.back import verilog
 
 
 class Counter(Elaboratable):
index 6168ea1eae57b5f4f52862c3fec043badec9e4a2..d04d720328cbef018f131bac7695cb257d0161d7 100644 (file)
@@ -5,7 +5,6 @@ import linecache
 import re
 from collections import OrderedDict
 from collections.abc import Iterable
-from contextlib import contextmanager
 
 from .utils import *
 
index 4606f43f48172c4d2b43b6ba2e7f601b9bed1d85..21986392366e547d62d99b426ae7e7b8d360715c 100644 (file)
@@ -1,10 +1,9 @@
 import io
-import textwrap
-from collections import defaultdict, OrderedDict
+from collections import OrderedDict
 from contextlib import contextmanager
 
 from .._utils import bits_for, flatten
-from ..hdl import ast, rec, ir, mem, xfrm
+from ..hdl import ast, ir, mem, xfrm
 
 
 __all__ = ["convert", "convert_fragment"]
index 4c9f4a0704d2047b70ce94eb242a7e8da377e4d1..3333900bb64289802f51b44935e726519c247076 100644 (file)
@@ -1,7 +1,6 @@
 import warnings
 
 from ..fhdl.structure import Signal, If, Case
-from ..._utils import deprecated
 from ..fhdl.module import CompatModule
 
 
index 0356e7d52b5c0d8bfb07ccd6c414bbdc0caa031f..1ccc4462774c5d5ce1e9de89ae4e1926728c2e75 100644 (file)
@@ -1,8 +1,5 @@
 from abc import ABCMeta, abstractmethod
-import traceback
-import sys
 import warnings
-import typing
 import functools
 from collections import OrderedDict
 from collections.abc import Iterable, MutableMapping, MutableSet, MutableSequence
index 829cd2f8ad491cb67cdb121b500eb8794c3ece41..564d8b8aed62a7f87bf3d37e4bd7b6fef46a18bc 100644 (file)
@@ -1,11 +1,10 @@
-from collections import OrderedDict, namedtuple
-from collections.abc import Iterable
+from collections import OrderedDict
 from contextlib import contextmanager, _GeneratorContextManager
 from functools import wraps
 from enum import Enum
 import warnings
 
-from .._utils import flatten, bits_for, deprecated
+from .._utils import flatten, bits_for
 from .. import tracer
 from .ast import *
 from .ir import *
index 93129fde111d75bb83923ae2f20aaa6e8c450cf9..3c1ec6045d945fc6461d90eda08e5f48dfbb976e 100644 (file)
@@ -1,9 +1,7 @@
-from abc import ABCMeta, abstractmethod
+from abc import ABCMeta
 from collections import defaultdict, OrderedDict
 from functools import reduce
 import warnings
-import traceback
-import sys
 
 from .._utils import *
 from .._unused import *
index b5cd0f7cfb0fdc3413e771e4f47e46e580abd526..2e6ebd6d404d82d4b7b5f74b37141763adda2bf4 100644 (file)
@@ -3,7 +3,7 @@ from collections import OrderedDict
 from functools import reduce, wraps
 
 from .. import tracer
-from .._utils import union, deprecated
+from .._utils import union
 from .ast import *
 
 
index 6e0c209ffa3cce61e5c0de6e901ce9ceb71d207e..97f8c5312c61f36976bf146ab35786bae7e6ec9b 100644 (file)
@@ -2,7 +2,7 @@ from abc import ABCMeta, abstractmethod
 from collections import OrderedDict
 from collections.abc import Iterable
 
-from .._utils import flatten, deprecated
+from .._utils import flatten
 from .. import tracer
 from .ast import *
 from .ast import _StatementList
index c4333908d94722f9e223701d7fe9e71bdf414aaf..9278c8e916275f1024d4bc355fa18df43d7978dd 100644 (file)
@@ -1,4 +1,3 @@
-from .._utils import deprecated
 from .. import *
 
 
index 0cab22587ad5a700a4e8c1b4d211dee4ac6c5729..de12a3c372ae955e3c745b126f8a4d7959054a8e 100644 (file)
@@ -2,7 +2,7 @@
 
 from .. import *
 from ..asserts import *
-from .._utils import log2_int, deprecated
+from .._utils import log2_int
 from .coding import GrayEncoder, GrayDecoder
 from .cdc import FFSynchronizer, AsyncFFSynchronizer
 
index b3608023ceb55f15ebbb0638df73818a647ed0ea..ca74fb3ee696d78f6cf4a9e9280e527c7dc44905 100644 (file)
@@ -1,5 +1,3 @@
-import inspect
-
 from ._base import BaseProcess
 
 
index 556b601c47094cf176fba0259b4b9ae7b54f3dc1..681243c91cec7c67707e60f5225fc50e9a7a6e1f 100644 (file)
@@ -6,7 +6,6 @@ import textwrap
 import traceback
 import unittest
 import warnings
-from contextlib import contextmanager
 
 from ..hdl.ast import *
 from ..hdl.ir import *
index 8fbf47b2e168f6a42fb12ad52c207aefc34179eb..061dc3e434fa0c6e7e0b5a9b80be9c44b042b268 100644 (file)
@@ -1,5 +1,4 @@
 import unittest
-from itertools import count
 
 from nmigen.compat import *
 from nmigen.compat.genlib.fsm import FSM
index bb3906c077182929f811c2de7f039bb47da92967..ab31bd6a5b65b06e6f45bd89e3a898a49ece73c1 100644 (file)
@@ -1,7 +1,7 @@
 import os
 from contextlib import contextmanager
 
-from nmigen._utils import flatten, union
+from nmigen._utils import flatten
 from nmigen.hdl.ast import *
 from nmigen.hdl.cd import  *
 from nmigen.hdl.mem import *
index 0df4cab9593701ad9407ee05ae150d38b6f02ba9..6355001b8f04150a49c7eac368baf56ee4658553 100644 (file)
@@ -5,7 +5,6 @@ import subprocess
 import textwrap
 import traceback
 import unittest
-from contextlib import contextmanager
 
 from nmigen.hdl.ast import *
 from nmigen.hdl.ir import *