Skip to content

Commit 75774aa

Browse files
committed
Remove unnecessary check for unicode instance (we are py3+ now)
1 parent 94af2ec commit 75774aa

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
@@ -144,8 +144,6 @@ cpdef inline Py_ssize_t max_len_string(object val):
144144
l = PyString_GET_SIZE(val)
145145
elif isinstance(val, bytes):
146146
l = PyBytes_GET_SIZE(val)
147-
elif isinstance(val, unicode):
148-
l = PyUnicode_GET_SIZE(val)
149147

150148
return l
151149

0 commit comments

Comments
 (0)