diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-03 15:13:26 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-03 15:13:26 -0400 |
commit | 79a1d1df3827dfba5dd6028187d49018d1b71aa4 (patch) | |
tree | c43d114ea6d2a3389c2b114b7f49720c62538d0b | |
parent | 3c75101e67549cd75e48a7079a1063da6245a631 (diff) | |
download | passlib-79a1d1df3827dfba5dd6028187d49018d1b71aa4.tar.gz |
py39 compat - fixed some uneeded escape sequences
-rw-r--r-- | passlib/apache.py | 4 | ||||
-rw-r--r-- | passlib/context.py | 8 | ||||
-rw-r--r-- | passlib/ifc.py | 4 | ||||
-rw-r--r-- | passlib/pwd.py | 4 | ||||
-rw-r--r-- | passlib/totp.py | 2 | ||||
-rw-r--r-- | passlib/utils/handlers.py | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/passlib/apache.py b/passlib/apache.py index 35f72e5..a75f2cf 100644 --- a/passlib/apache.py +++ b/passlib/apache.py @@ -80,7 +80,7 @@ class _CommonFile(object): :arg data: database to load, as single string. - :param \*\*kwds: + :param \\*\\*kwds: all other keywords are the same as in the class constructor """ if 'path' in kwds: @@ -97,7 +97,7 @@ class _CommonFile(object): :arg path: local filepath to load from - :param \*\*kwds: + :param \\*\\*kwds: all other keywords are the same as in the class constructor """ self = cls(**kwds) diff --git a/passlib/context.py b/passlib/context.py index e6d3ea5..2822d70 100644 --- a/passlib/context.py +++ b/passlib/context.py @@ -228,7 +228,7 @@ class CryptPolicy(object): elif not isinstance(source, (bytes,unicode)): raise TypeError("source must be CryptPolicy, dict, config string, " "or file path: %r" % (type(source),)) - elif any(c in source for c in "\n\r\t") or not source.strip(" \t./\;:"): + elif any(c in source for c in "\n\r\t") or not source.strip(" \t./;:"): return cls(_internal_context=CryptContext.from_string(source)) else: return cls(_internal_context=CryptContext.from_path(source)) @@ -2227,7 +2227,7 @@ class CryptContext(object): be used when hashing the password (e.g. different default scheme, different default rounds values, etc). - :param \*\*kwds: + :param \\*\\*kwds: All other keyword options are passed to the selected algorithm's :meth:`PasswordHash.hash() <passlib.ifc.PasswordHash.hash>` method. @@ -2304,7 +2304,7 @@ class CryptContext(object): This is mainly used when generating new hashes, it has little effect when verifying; this keyword is mainly provided for symmetry. - :param \*\*kwds: + :param \\*\\*kwds: All additional keywords are passed to the appropriate handler, and should match its :attr:`~passlib.ifc.PasswordHash.context_kwds`. @@ -2384,7 +2384,7 @@ class CryptContext(object): If specified, this will cause any category-specific defaults to be used if the password has to be re-hashed. - :param \*\*kwds: + :param \\*\\*kwds: all additional keywords are passed to the appropriate handler, and should match that hash's :attr:`PasswordHash.context_kwds <passlib.ifc.PasswordHash.context_kwds>`. diff --git a/passlib/ifc.py b/passlib/ifc.py index 1a1aef2..559d256 100644 --- a/passlib/ifc.py +++ b/passlib/ifc.py @@ -120,7 +120,7 @@ class PasswordHash(object): Should handle generating salt, etc, and should return string containing identifier, salt & other configuration, as well as digest. - :param \*\*settings_kwds: + :param \\*\\*settings_kwds: Pass in settings to customize configuration of resulting hash. @@ -132,7 +132,7 @@ class PasswordHash(object): Support will be removed in Passlib 2.0. - :param \*\*context_kwds: + :param \\*\\*context_kwds: Specific algorithms may require context-specific information (such as the user login). """ diff --git a/passlib/pwd.py b/passlib/pwd.py index 12d6ecb..27ed228 100644 --- a/passlib/pwd.py +++ b/passlib/pwd.py @@ -357,7 +357,7 @@ class WordGenerator(SequenceGenerator): :param charset: predefined charset to draw from. - :param \*\*kwds: + :param \\*\\*kwds: all other keywords passed to the :class:`SequenceGenerator` parent class. Attributes @@ -614,7 +614,7 @@ class PhraseGenerator(SequenceGenerator): name of preset wordlist to use instead of ``wordset``. :param spaces: whether to insert spaces between words in output (defaults to ``True``). - :param \*\*kwds: + :param \\*\\*kwds: all other keywords passed to the :class:`SequenceGenerator` parent class. .. autoattribute:: wordset diff --git a/passlib/totp.py b/passlib/totp.py index 7d8c6ed..9ad5000 100644 --- a/passlib/totp.py +++ b/passlib/totp.py @@ -1152,7 +1152,7 @@ class TOTP(object): Serialized TOTP key. Can be anything accepted by :meth:`TOTP.from_source`. - :param \*\*kwds: + :param \\*\\*kwds: All additional keywords passed to :meth:`TOTP.match`. :return: diff --git a/passlib/utils/handlers.py b/passlib/utils/handlers.py index 4c3b4b7..7e04114 100644 --- a/passlib/utils/handlers.py +++ b/passlib/utils/handlers.py @@ -697,7 +697,7 @@ class GenericHandler(MinimalHandler): r""" return parsed instance from hash/configuration string - :param \*\*context: + :param \\*\\*context: context keywords to pass to constructor (if applicable). :raises ValueError: if hash is incorrectly formatted |