summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-07-07 10:18:22 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-07-07 10:18:22 (GMT)
commit24766ba6afa96cec03751258ee288e456fb7d07e (patch)
tree6f6013b89dccec5a3d61d9ef21a2378e3b1d4e95 /Modules
parent3310a10a68228c4a84a2ed517af6b0b81e7f0b15 (diff)
downloadcpython-24766ba6afa96cec03751258ee288e456fb7d07e.zip
cpython-24766ba6afa96cec03751258ee288e456fb7d07e.tar.gz
cpython-24766ba6afa96cec03751258ee288e456fb7d07e.tar.bz2
Typo in error message
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 12fec2c..01e24bb 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -646,7 +646,7 @@ np_ushort(char *p, PyObject *v, const formatdef *f)
return -1;
if (x < 0 || x > USHRT_MAX){
PyErr_SetString(StructError,
- "short format requires 0 <= number <= " STRINGIFY(USHRT_MAX));
+ "ushort format requires 0 <= number <= " STRINGIFY(USHRT_MAX));
return -1;
}
y = (unsigned short)x;