*: remove unused imports
This commit is contained in:
parent
d09dedfb48
commit
25caf4045b
|
@ -1,6 +1,6 @@
|
||||||
from nmigen import *
|
from nmigen import *
|
||||||
from nmigen.sim import *
|
from nmigen.sim import *
|
||||||
from nmigen.back import rtlil, verilog
|
from nmigen.back import verilog
|
||||||
|
|
||||||
|
|
||||||
class Counter(Elaboratable):
|
class Counter(Elaboratable):
|
||||||
|
|
|
@ -5,7 +5,6 @@ import linecache
|
||||||
import re
|
import re
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from collections.abc import Iterable
|
from collections.abc import Iterable
|
||||||
from contextlib import contextmanager
|
|
||||||
|
|
||||||
from .utils import *
|
from .utils import *
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import io
|
import io
|
||||||
import textwrap
|
from collections import OrderedDict
|
||||||
from collections import defaultdict, OrderedDict
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
from .._utils import bits_for, flatten
|
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"]
|
__all__ = ["convert", "convert_fragment"]
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from ..fhdl.structure import Signal, If, Case
|
from ..fhdl.structure import Signal, If, Case
|
||||||
from ..._utils import deprecated
|
|
||||||
from ..fhdl.module import CompatModule
|
from ..fhdl.module import CompatModule
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta, abstractmethod
|
||||||
import traceback
|
|
||||||
import sys
|
|
||||||
import warnings
|
import warnings
|
||||||
import typing
|
|
||||||
import functools
|
import functools
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from collections.abc import Iterable, MutableMapping, MutableSet, MutableSequence
|
from collections.abc import Iterable, MutableMapping, MutableSet, MutableSequence
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
from collections import OrderedDict, namedtuple
|
from collections import OrderedDict
|
||||||
from collections.abc import Iterable
|
|
||||||
from contextlib import contextmanager, _GeneratorContextManager
|
from contextlib import contextmanager, _GeneratorContextManager
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from .._utils import flatten, bits_for, deprecated
|
from .._utils import flatten, bits_for
|
||||||
from .. import tracer
|
from .. import tracer
|
||||||
from .ast import *
|
from .ast import *
|
||||||
from .ir import *
|
from .ir import *
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta
|
||||||
from collections import defaultdict, OrderedDict
|
from collections import defaultdict, OrderedDict
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
import warnings
|
import warnings
|
||||||
import traceback
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from .._utils import *
|
from .._utils import *
|
||||||
from .._unused import *
|
from .._unused import *
|
||||||
|
|
|
@ -3,7 +3,7 @@ from collections import OrderedDict
|
||||||
from functools import reduce, wraps
|
from functools import reduce, wraps
|
||||||
|
|
||||||
from .. import tracer
|
from .. import tracer
|
||||||
from .._utils import union, deprecated
|
from .._utils import union
|
||||||
from .ast import *
|
from .ast import *
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from abc import ABCMeta, abstractmethod
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from collections.abc import Iterable
|
from collections.abc import Iterable
|
||||||
|
|
||||||
from .._utils import flatten, deprecated
|
from .._utils import flatten
|
||||||
from .. import tracer
|
from .. import tracer
|
||||||
from .ast import *
|
from .ast import *
|
||||||
from .ast import _StatementList
|
from .ast import _StatementList
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from .._utils import deprecated
|
|
||||||
from .. import *
|
from .. import *
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
from .. import *
|
from .. import *
|
||||||
from ..asserts import *
|
from ..asserts import *
|
||||||
from .._utils import log2_int, deprecated
|
from .._utils import log2_int
|
||||||
from .coding import GrayEncoder, GrayDecoder
|
from .coding import GrayEncoder, GrayDecoder
|
||||||
from .cdc import FFSynchronizer, AsyncFFSynchronizer
|
from .cdc import FFSynchronizer, AsyncFFSynchronizer
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import inspect
|
|
||||||
|
|
||||||
from ._base import BaseProcess
|
from ._base import BaseProcess
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ import textwrap
|
||||||
import traceback
|
import traceback
|
||||||
import unittest
|
import unittest
|
||||||
import warnings
|
import warnings
|
||||||
from contextlib import contextmanager
|
|
||||||
|
|
||||||
from ..hdl.ast import *
|
from ..hdl.ast import *
|
||||||
from ..hdl.ir import *
|
from ..hdl.ir import *
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import unittest
|
import unittest
|
||||||
from itertools import count
|
|
||||||
|
|
||||||
from nmigen.compat import *
|
from nmigen.compat import *
|
||||||
from nmigen.compat.genlib.fsm import FSM
|
from nmigen.compat.genlib.fsm import FSM
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
from nmigen._utils import flatten, union
|
from nmigen._utils import flatten
|
||||||
from nmigen.hdl.ast import *
|
from nmigen.hdl.ast import *
|
||||||
from nmigen.hdl.cd import *
|
from nmigen.hdl.cd import *
|
||||||
from nmigen.hdl.mem import *
|
from nmigen.hdl.mem import *
|
||||||
|
|
|
@ -5,7 +5,6 @@ import subprocess
|
||||||
import textwrap
|
import textwrap
|
||||||
import traceback
|
import traceback
|
||||||
import unittest
|
import unittest
|
||||||
from contextlib import contextmanager
|
|
||||||
|
|
||||||
from nmigen.hdl.ast import *
|
from nmigen.hdl.ast import *
|
||||||
from nmigen.hdl.ir import *
|
from nmigen.hdl.ir import *
|
||||||
|
|
Loading…
Reference in a new issue