Skip to content

Commit

Permalink
Remove outdated alias (#1681)
Browse files Browse the repository at this point in the history
This PR removes an `enumerate = enumerate` assignment that should no longer be necessary.

Technically, this is a backwards incompatible change: anyone who imports `enumerate` from `traits.trait_base` will no longer be able to do so. However, the workaround is immediate (just delete that import so that you pick up the built-in `enumerate`), and code that's doing this is already wrong on so many levels, so I don't feel bad about making this change without a deprecation period.
  • Loading branch information
mdickinson committed Aug 5, 2022
1 parent 9f5fe4d commit 0227fda
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions traits/trait_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

from .etsconfig.api import ETSConfig

# backwards compatibility: trait_base used to provide a patched enumerate
enumerate = enumerate

# Constants

SequenceTypes = (list, tuple)
Expand Down

0 comments on commit 0227fda

Please sign in to comment.