diff options
author | David Wolever <david@wolever.net> | 2012-02-10 15:08:49 -0500 |
---|---|---|
committer | David Wolever <david@wolever.net> | 2012-02-10 15:08:49 -0500 |
commit | b76416977554c7b01442efe0d1f058a43372e2f5 (patch) | |
tree | eb092a15c88e085d805807f78d23262f87cb32b5 /msgpack/_msgpack.pyx | |
parent | ac713705ebdd131acb92b52116e6ec180731add2 (diff) | |
download | msgpack-python-b76416977554c7b01442efe0d1f058a43372e2f5.tar.gz |
Correcting 'utf-8' to 'unicode'.
Diffstat (limited to 'msgpack/_msgpack.pyx')
-rw-r--r-- | msgpack/_msgpack.pyx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/msgpack/_msgpack.pyx b/msgpack/_msgpack.pyx index 7a81746..52464fb 100644 --- a/msgpack/_msgpack.pyx +++ b/msgpack/_msgpack.pyx @@ -121,7 +121,7 @@ cdef class Packer(object): ret = msgpack_pack_raw_body(&self.pk, rawval, len(o)) elif PyUnicode_Check(o): if not self.encoding: - raise TypeError("Can't encode utf-8 no encoding is specified") + raise TypeError("Can't encode unicode string: no encoding is specified") o = PyUnicode_AsEncodedString(o, self.encoding, self.unicode_errors) rawval = o ret = msgpack_pack_raw(&self.pk, len(o)) @@ -425,3 +425,4 @@ cdef class Unpacker(object): #def _off(self): # return self.buf_head + |