[Python-modules-commits] [python-zxcvbn] 01/01: new version: 4.4.15

Sabino Par sprab-guest at moszumanska.debian.org
Thu Jul 20 20:02:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

sprab-guest pushed a commit to branch master
in repository python-zxcvbn.

commit e0be9c5721529aa6dc22c9c41710223bcead02b5
Author: sprab-guest <sprab at onenetbeyond.org>
Date:   Wed Jul 19 22:56:03 2017 +0200

    new version: 4.4.15
---
 PKG-INFO           |  4 ++--
 debian/NEWS.Debian |  4 ++--
 debian/changelog   |  4 ++--
 setup.py           |  4 ++--
 zxcvbn/__init__.py | 14 +++++++++++++-
 5 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 561a1c3..b4cabf4 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: zxcvbn-python
-Version: 4.4.14
+Version: 4.4.15
 Summary: Python implementation of Dropbox's realistic password strength estimator, zxcvbn
 Home-page: https://github.com/dwolfhub/zxcvbn-python
 Author: Daniel Wolf
 Author-email: danielrwolf5 at gmail.com
 License: MIT
-Download-URL: https://github.com/dwolfhub/zxcvbn-python/tarball/v4.4.14
+Download-URL: https://github.com/dwolfhub/zxcvbn-python/tarball/v4.4.15
 Description: UNKNOWN
 Keywords: zxcvbn,password,security
 Platform: UNKNOWN
diff --git a/debian/NEWS.Debian b/debian/NEWS.Debian
index 1040dfe..0e6acdc 100644
--- a/debian/NEWS.Debian
+++ b/debian/NEWS.Debian
@@ -1,7 +1,7 @@
-python-zxcvbn (4.4.14-0.1) experimental; urgency=low
+python-zxcvbn (4.4.15-0.1) experimental; urgency=low
 
   The main method of this Python module
-  has changed in version 4.4.14 from
+  has changed in version 4.4.15 from
   password_strength(password, user_inputs=[])
   to zxcvbn(password, user_inputs=[]), please
   refer to upstream documentation or README.rst file
diff --git a/debian/changelog b/debian/changelog
index ba3cafb..7eaa0af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,10 @@
-python-zxcvbn (4.4.14-0.1) experimental; urgency=low
+python-zxcvbn (4.4.15-0.1) experimental; urgency=low
 
   [Sabino Par]
   * New maintainer (Closes: #855638)
     - Thanks Riley for your work!
   * Fixed change upstream source to the active fork (Closes: #850910)
-    - Update to new source code fork 4.4.14 release
+    - Update to new source code fork 4.4.15 release
     - update copyright file for new release and remove CC-BY-SA-3.0
       and public-domain references
   * Added new Python3 package port
diff --git a/setup.py b/setup.py
index 5550a37..aa814e7 100644
--- a/setup.py
+++ b/setup.py
@@ -2,10 +2,10 @@ from distutils.core import setup
 
 setup(
     name='zxcvbn-python',
-    version='4.4.14',
+    version='4.4.15',
     packages=['zxcvbn'],
     url='https://github.com/dwolfhub/zxcvbn-python',
-    download_url='https://github.com/dwolfhub/zxcvbn-python/tarball/v4.4.14',
+    download_url='https://github.com/dwolfhub/zxcvbn-python/tarball/v4.4.15',
     license='MIT',
     author='Daniel Wolf',
     author_email='danielrwolf5 at gmail.com',
diff --git a/zxcvbn/__init__.py b/zxcvbn/__init__.py
index 11964eb..02aa347 100644
--- a/zxcvbn/__init__.py
+++ b/zxcvbn/__init__.py
@@ -4,12 +4,24 @@ from . import matching, scoring, time_estimates, feedback
 
 
 def zxcvbn(password, user_inputs=None):
+    try:
+        # Python 2 string types
+        basestring = (str, unicode)
+    except NameError:
+        # Python 3 string types
+        basestring = (str, bytes)
+
     if user_inputs is None:
         user_inputs = []
 
     start = datetime.now()
 
-    sanitized_inputs = [str(arg).lower() for arg in user_inputs]
+    sanitized_inputs = []
+    for arg in user_inputs:
+        if not isinstance(arg, basestring):
+            arg = str(arg)
+        sanitized_inputs.append(arg.lower())
+
     matching.set_user_input_dictionary(sanitized_inputs)
 
     matches = matching.omnimatch(password)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-zxcvbn.git



More information about the Python-modules-commits mailing list