We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c503aa commit 1439fecCopy full SHA for 1439fec
pins/drivers.py
@@ -130,10 +130,10 @@ def load_data(
130
# See https://github.com/rstudio/pins-python/pull/265
131
if isinstance(f, fsspec.implementations.local.LocalFileOpener):
132
# rdata requires f to be a BinaryIO object.
133
- io_f = f.f
+ fp = f.name
134
else:
135
- io_f = f
136
- parsed = rdata.parser.parse_file(io_f)
+ fp = f
+ parsed = rdata.parser.parse_file(fp)
137
return rdata.conversion.convert(parsed)
138
except ModuleNotFoundError:
139
raise ModuleNotFoundError(
0 commit comments