Author: Ronan Lamy <[email protected]>
Branch: unicode-utf8-py3
Changeset: r95875:daa08b2d951c
Date: 2019-02-06 14:56 +0100
http://bitbucket.org/pypy/pypy/changeset/daa08b2d951c/
Log: Kill dead code
diff --git a/pypy/module/array/interp_array.py
b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -1033,11 +1033,6 @@
"unsigned %d-byte integer out of range",
mytype.bytes)
return rffi.cast(mytype.itemtype, item)
- if mytype.unwrap == 'unicode_w':
- if len(item) != 1:
- raise oefmt(space.w_TypeError, "array item must be char")
- item = item[0]
- return rffi.cast(mytype.itemtype, item)
if mytype.unwrap == 'utf8_len_w':
utf8, lgt = item
if lgt != 1:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit