Skip to content

Commit 6f2a45d

Browse files
committed
Lib: Add __slots__ to cidict and LDAPUrlExtensions
1 parent 89f66f8 commit 6f2a45d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/ldap/cidict.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class cidict(MutableMapping):
1515
"""
1616
Case-insensitive but case-respecting dictionary.
1717
"""
18+
__slots__ = ('_keys', '_data')
1819

1920
def __init__(self, default=None):
2021
self._keys = {}

Lib/ldapurl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ class LDAPUrlExtensions(MutableMapping):
137137
Models a collection of LDAP URL extensions as
138138
a mapping type
139139
"""
140+
__slots__ = ('_data', )
140141

141142
def __init__(self, default=None):
142143
self._data = {}

0 commit comments

Comments
 (0)