various encoding fixes, fix #1650

This commit is contained in:
Maximilian Hils
2016-10-22 18:47:12 -07:00
parent 0526d94f4a
commit a1a792aeac
5 changed files with 41 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ DATATYPES = dict(
punctuation=string.punctuation.encode(),
whitespace=string.whitespace.encode(),
ascii=string.printable.encode(),
bytes=bytes(bytearray(range(256)))
bytes=bytes(range(256))
)