Skip to content

Commit d5bd375

Browse files
committed
fixup! ENH: Support fspath protocol
1 parent 8c10784 commit d5bd375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/stata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ def __init__(self, fname, data, convert_dates=None, write_index=True,
19321932
if byteorder is None:
19331933
byteorder = sys.byteorder
19341934
self._byteorder = _set_endianness(byteorder)
1935-
self._fname = fname
1935+
self._fname = _stringify_path(fname)
19361936
self.type_converters = {253: np.int32, 252: np.int16, 251: np.int8}
19371937

19381938
def _write(self, to_write):

0 commit comments

Comments
 (0)