Update of /cvsroot/jython/jython/org/python/modules
In directory usw-pr-cvs1:/tmp/cvs-serv29824
Modified Files:
_codecs.java
Log Message:
charmap_encode()/charmap_decode(): Remove 1-n mapping restriction.
Index: _codecs.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/modules/_codecs.java,v
retrieving revision 2.7
retrieving revision 2.8
diff -C2 -r2.7 -r2.8
*** _codecs.java 2001/02/02 11:29:42 2.7
--- _codecs.java 2001/07/14 22:23:03 2.8
***************
*** 88,96 ****
"character maps to <undefined>");
} else if (x instanceof PyString) {
- if (x.__len__() != 1) {
- /* 1-n mapping */
- throw new PyException(Py.NotImplementedError,
- "1-n mappings are currently not implemented");
- }
v.append(x.toString());
}
--- 88,91 ----
***************
*** 136,144 ****
"character maps to <undefined>");
} else if (x instanceof PyString) {
- if (x.__len__() != 1) {
- /* 1-n mapping */
- throw new PyException(Py.NotImplementedError,
- "1-n mappings are currently not implemented");
- }
v.append(x.toString());
}
--- 131,134 ----
|