*: remove unused imports

This commit is contained in:
Robin Ole Heinemann 2021-05-18 20:39:57 +02:00 committed by whitequark
parent d09dedfb48
commit 25caf4045b
16 changed files with 10 additions and 25 deletions

View 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):

View 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 *

View 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"]

View file

@ -1,7 +1,6 @@
import warnings
from ..fhdl.structure import Signal, If, Case
from ..._utils import deprecated
from ..fhdl.module import CompatModule

View 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

View 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 *

View 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 *

View 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 *

View 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

View file

@ -1,4 +1,3 @@
from .._utils import deprecated
from .. import *

View 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

View file

@ -1,5 +1,3 @@
import inspect
from ._base import BaseProcess

View 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 *

View file

@ -1,5 +1,4 @@
import unittest
from itertools import count
from nmigen.compat import *
from nmigen.compat.genlib.fsm import FSM

View 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 *

View 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 *