Skip to content

Commit

Permalink
version 20200502.1, fixed IS_STRONG for py2
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed May 3, 2020
1 parent 407cc51 commit bc2255d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pydal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "20200429.4"
__version__ = "20200502.1"

from .base import DAL
from .objects import Field
Expand Down
2 changes: 1 addition & 1 deletion pydal/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -4455,7 +4455,7 @@ def validate(self, value, record_id=None):
numberset = frozenset(b"0123456789")
sym1set = frozenset(b"!@#$%^&*() ")
sym2set = frozenset(b"~`-_=+[]{}\\|;:'\",.<>?/")
otherset = frozenset(b"".join(chr(x).encode() for x in range(256)))
otherset = frozenset(b"".join(chr(x) if PY2 else chr(r).encode() for x in range(256)))


def calc_entropy(string):
Expand Down

0 comments on commit bc2255d

Please sign in to comment.