diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/q | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -172,7 +172,7 @@ def sha1(data): def regexp(regular_expression, data): if data is not None: - if type(data) is not str: + if not isinstance(data, str) and not isinstance(data, unicode): data = str(data) return re.search(regular_expression, data) is not None else: |