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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy