Skip to content

Commit c3251bc

Browse files
committed
replaced type check with isinstance()
1 parent bb41180 commit c3251bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/stata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3263,7 +3263,7 @@ def generate_blob(self, gso_table: dict[str, tuple[int, int]]) -> bytes:
32633263
bio.write(gso_type)
32643264

32653265
# llll
3266-
if(type(strl) == str):
3266+
if(isinstance(strl, str)):
32673267
strl_convert = bytes(strl, "utf-8")
32683268
else:
32693269
strl_convert = strl

0 commit comments

Comments
 (0)