Skip to content

Commit

Permalink
Lib: Add __slots__ to cidict and LDAPUrlExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Viktorin committed Jun 5, 2020
1 parent 89f66f8 commit 6f2a45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lib/ldap/cidict.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class cidict(MutableMapping):
"""
Case-insensitive but case-respecting dictionary.
"""
__slots__ = ('_keys', '_data')

def __init__(self, default=None):
self._keys = {}
Expand Down
1 change: 1 addition & 0 deletions Lib/ldapurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class LDAPUrlExtensions(MutableMapping):
Models a collection of LDAP URL extensions as
a mapping type
"""
__slots__ = ('_data', )

def __init__(self, default=None):
self._data = {}
Expand Down

0 comments on commit 6f2a45d

Please sign in to comment.