Skip to content

Commit 1ee2cdf

Browse files
kinowBruno P. Kinoshita
authored and
Bruno P. Kinoshita
committed
Remove unnecessary check for unicode instance (we are py3+ now)
1 parent bc40b86 commit 1ee2cdf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/_libs/writers.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ cpdef inline Py_ssize_t max_len_string(object val):
142142
l = PyString_GET_SIZE(val)
143143
elif isinstance(val, bytes):
144144
l = PyBytes_GET_SIZE(val)
145-
elif isinstance(val, unicode):
146-
l = PyUnicode_GET_SIZE(val)
147145

148146
return l
149147

0 commit comments

Comments
 (0)