summaryrefslogtreecommitdiffstats
path: root/Lib/struct.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/struct.py')
-rw-r--r--Lib/struct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/struct.py b/Lib/struct.py
index 027caa2..10085b7 100644
--- a/Lib/struct.py
+++ b/Lib/struct.py
@@ -36,7 +36,7 @@ from _struct import Struct as _Struct, error
class Struct(_Struct):
def __init__(self, fmt):
if isinstance(fmt, str):
- fmt = str8(fmt)
+ fmt = str8(fmt, 'latin1')
_Struct.__init__(self, fmt)
_MAXCACHE = 100