*: remove unused imports
This commit is contained in:
parent
d09dedfb48
commit
25caf4045b
|
@ -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):
|
||||
|
|
|
@ -5,7 +5,6 @@ import linecache
|
|||
import re
|
||||
from collections import OrderedDict
|
||||
from collections.abc import Iterable
|
||||
from contextlib import contextmanager
|
||||
|
||||
from .utils import *
|
||||
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import warnings
|
||||
|
||||
from ..fhdl.structure import Signal, If, Case
|
||||
from ..._utils import deprecated
|
||||
from ..fhdl.module import CompatModule
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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 *
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from .._utils import deprecated
|
||||
from .. import *
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import inspect
|
||||
|
||||
from ._base import BaseProcess
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import textwrap
|
|||
import traceback
|
||||
import unittest
|
||||
import warnings
|
||||
from contextlib import contextmanager
|
||||
|
||||
from ..hdl.ast import *
|
||||
from ..hdl.ir import *
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import unittest
|
||||
from itertools import count
|
||||
|
||||
from nmigen.compat import *
|
||||
from nmigen.compat.genlib.fsm import FSM
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue