This commit is contained in:
Mauricio Baeza 2019-09-16 10:59:01 -05:00
parent 8907638606
commit d3caa8e171
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -351,7 +351,7 @@ def optimal_data_chunks(data, minimum=4):
"""
data = to_bytestring(data)
num_pattern = r'\d'.encode("latin-1")
alpha_pattern = '[').encode("latin-1") + re.escape(ALPHA_NUM) + ']'.encode("latin-1")
alpha_pattern = '['.encode("latin-1") + re.escape(ALPHA_NUM) + ']'.encode("latin-1")
if len(data) <= minimum:
num_pattern = re.compile('^'.encode("latin-1") + num_pattern + '+$'.encode("latin-1"))
alpha_pattern = re.compile('^'.encode("latin-1") + alpha_pattern + '+$'.encode("latin-1"))