Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r53884:e711ed82327a
Date: 2012-03-22 10:31 +0100
http://bitbucket.org/pypy/pypy/changeset/e711ed82327a/
Log: typo
diff --git a/pypy/module/struct/app_struct.py b/pypy/module/struct/app_struct.py
--- a/pypy/module/struct/app_struct.py
+++ b/pypy/module/struct/app_struct.py
@@ -15,7 +15,7 @@
# XXX inefficient
def unpack_from(fmt, buf, offset=0):
- size = _struct.calcsize(fmt)
+ size = struct.calcsize(fmt)
data = memoryview(buf)[offset:offset+size]
if len(data) != size:
raise error("unpack_from requires a buffer of at least %d bytes"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit