Skip to content

Commit bad2cc3

Browse files
kinowBruno P. Kinoshita
authored andcommitted
Remove unnecessary check for unicode instance (we are py3+ now)
1 parent 9828603 commit bad2cc3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/_libs/writers.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ cpdef inline Py_ssize_t max_len_string(object val):
137137
l = PyString_GET_SIZE(val)
138138
elif isinstance(val, bytes):
139139
l = PyBytes_GET_SIZE(val)
140-
elif isinstance(val, unicode):
141-
l = PyUnicode_GET_SIZE(val)
142140

143141
return l
144142

0 commit comments

Comments
 (0)