summaryrefslogtreecommitdiff
path: root/admin/benchmarks.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-01-18 17:51:32 -0500
committerEli Collins <elic@assurancetechnologies.com>2012-01-18 17:51:32 -0500
commit666aa14bf15ed898472463d2ec890de0b8c60923 (patch)
treef4ad79fb817cdca19e64dbb1abfe86c1a2c8ffc1 /admin/benchmarks.py
parentb6d904be92c77bce061c78034145958401bba381 (diff)
downloadpasslib-666aa14bf15ed898472463d2ec890de0b8c60923.tar.gz
import cleanups
* moved bytes compat functions from utils to utils.compat (bord, bjoin, bjoin_ints, bjoin_elems, ujoin) * renamed bord -> belem_ord for clarify * a bunch of to_native_str() always use ascii, and have fixed input types (always bytes or always unicode). these don't need overhead of to_native_str(), so replaced those calls with two new funcs: compat.bascii_to_str() / compat.uascii_to_str() * cleaned up a lot of imports from utils/utils.compat to pull from correct module * simplified the to_string() logic of a bunch of handlers to reduce unicode<->byte transitions
Diffstat (limited to 'admin/benchmarks.py')
-rw-r--r--admin/benchmarks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/benchmarks.py b/admin/benchmarks.py
index 32f4533..d68d599 100644
--- a/admin/benchmarks.py
+++ b/admin/benchmarks.py
@@ -22,7 +22,7 @@ try:
from passlib.utils import PasslibPolicyWarning
except ImportError:
PasslibPolicyWarning = None
-from passlib.utils import handlers as uh
+import passlib.utils.handlers as uh
from passlib.utils.compat import u, print_, unicode
# local
__all__ = [