Skip to content

Commit 5641da4

Browse files
Removing unused token pattern matchers.
1 parent d693026 commit 5641da4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

bitstring/bitarray_.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,6 @@ def __init__(self, auto: Optional[Union[BitsType, int]] = None, /, length: Optio
137137
self._bitstore = self._bitstore._copy()
138138
self._bitstore.immutable = False
139139

140-
_letter_to_setter: Dict[str, Callable[..., None]] = \
141-
{'u': Bits._setuint,
142-
'i': Bits._setint,
143-
'f': Bits._setfloatbe,
144-
'b': Bits._setbin_safe,
145-
'o': Bits._setoct,
146-
'h': Bits._sethex}
147-
148-
_name_length_pattern: Pattern[str] = re.compile(r'^(?P<name>[a-z]+)(?P<len>\d+)$', re.IGNORECASE)
149-
150140
def copy(self: TBits) -> TBits:
151141
"""Return a copy of the bitstring."""
152142
return self.__copy__()

0 commit comments

Comments
 (0)