Skip to content

Commit

Permalink
Removing unused token pattern matchers.
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-griffiths committed Jan 3, 2024
1 parent d693026 commit 5641da4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions bitstring/bitarray_.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,6 @@ def __init__(self, auto: Optional[Union[BitsType, int]] = None, /, length: Optio
self._bitstore = self._bitstore._copy()
self._bitstore.immutable = False

_letter_to_setter: Dict[str, Callable[..., None]] = \
{'u': Bits._setuint,
'i': Bits._setint,
'f': Bits._setfloatbe,
'b': Bits._setbin_safe,
'o': Bits._setoct,
'h': Bits._sethex}

_name_length_pattern: Pattern[str] = re.compile(r'^(?P<name>[a-z]+)(?P<len>\d+)$', re.IGNORECASE)

def copy(self: TBits) -> TBits:
"""Return a copy of the bitstring."""
return self.__copy__()
Expand Down

0 comments on commit 5641da4

Please sign in to comment.