diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 14:29:09 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 14:29:09 -0400 |
| commit | f108e0fc03eead818b0c80bde820ecc9393b29cb (patch) | |
| tree | 7808d61542a98aa89199a4e7cb3f5ba5117d2b00 /passlib/ext | |
| parent | 63559b181ad2df2fb9a2b82084dcf1c559df33b9 (diff) | |
| download | passlib-f108e0fc03eead818b0c80bde820ecc9393b29cb.tar.gz | |
cleanup old python compat -- removed iteritems() wrapper
Diffstat (limited to 'passlib/ext')
| -rw-r--r-- | passlib/ext/django/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/passlib/ext/django/utils.py b/passlib/ext/django/utils.py index 626e48c..1d71032 100644 --- a/passlib/ext/django/utils.py +++ b/passlib/ext/django/utils.py @@ -19,7 +19,7 @@ except ImportError: from passlib import exc, registry from passlib.context import CryptContext from passlib.exc import PasslibRuntimeWarning -from passlib.utils.compat import get_method_function, iteritems, OrderedDict, unicode +from passlib.utils.compat import get_method_function, OrderedDict, unicode from passlib.utils.decor import memoized_property # local __all__ = [ @@ -955,7 +955,7 @@ class _PasslibHasherWrapper(object): ] if hasattr(handler, "parsehash"): kwds = handler.parsehash(encoded, sanitize=mask_hash) - for key, value in iteritems(kwds): + for key, value in kwds.items(): key = self._translate_kwds.get(key, key) items.append((_(key), value)) return OrderedDict(items) @@ -1122,7 +1122,7 @@ class _PatchManager(object): def check_all(self, strict=False): """run sanity check on all keys, issue warning if out of sync""" same = self._is_same_value - for path, (orig, expected) in iteritems(self._state): + for path, (orig, expected) in self._state.items(): if same(self._get_path(path), expected): continue msg = "another library has patched resource: %r" % path @@ -1176,7 +1176,7 @@ class _PatchManager(object): ##def patch_many(self, **kwds): ## "override specified resources with new values" - ## for path, value in iteritems(kwds): + ## for path, value in kwds.items(): ## self.patch(path, value) def monkeypatch(self, parent, name=None, enable=True, wrap=False): |
