summaryrefslogtreecommitdiff
path: root/passlib/handlers/misc.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2017-02-17 11:21:50 -0500
committerEli Collins <elic@assurancetechnologies.com>2017-02-17 11:21:50 -0500
commit5b529f14d35c657c6d67a8fc5ee5dfaf89d5c6e3 (patch)
treecbba1a0ce1111317c8647a0396804db24b4f45f6 /passlib/handlers/misc.py
parentd9ebfa4a70506d47dae94c1ab1a3c40f854428d7 (diff)
downloadpasslib-5b529f14d35c657c6d67a8fc5ee5dfaf89d5c6e3.tar.gz
compat cleanup: replaced all u("") instances with u""
realized can do this now that we're requiring python3 >= 3.3. had to keep u() helper around for u(r"") instances, since py3 doesn't have ur"". but switched it to use ascii decoding for py2, to make sure things are clean.
Diffstat (limited to 'passlib/handlers/misc.py')
-rw-r--r--passlib/handlers/misc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/passlib/handlers/misc.py b/passlib/handlers/misc.py
index ecd2e78..8644fee 100644
--- a/passlib/handlers/misc.py
+++ b/passlib/handlers/misc.py
@@ -10,7 +10,7 @@ from warnings import warn
# site
# pkg
from passlib.utils import to_native_str, str_consteq
-from passlib.utils.compat import unicode, u, unicode_or_bytes_types
+from passlib.utils.compat import unicode, unicode_or_bytes_types
import passlib.utils.handlers as uh
# local
__all__ = [
@@ -22,7 +22,7 @@ __all__ = [
# handler
#=============================================================================
-_MARKER_CHARS = u("*!")
+_MARKER_CHARS = u"*!"
_MARKER_BYTES = b"*!"
class unix_disabled(uh.ifc.DisabledHash, uh.MinimalHandler):
@@ -56,12 +56,12 @@ class unix_disabled(uh.ifc.DisabledHash, uh.MinimalHandler):
# TODO: rename attr to 'marker'...
if 'bsd' in sys.platform: # pragma: no cover -- runtime detection
- default_marker = u("*")
+ default_marker = u"*"
else:
# use the linux default for other systems
# (glibc also supports adding old hash after the marker
# so it can be restored later).
- default_marker = u("!")
+ default_marker = u"!"
@classmethod
def using(cls, marker=None, **kwds):