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 95b4507 commit b189e71Copy full SHA for b189e71
Orange/data/io.py
@@ -164,14 +164,7 @@ def read(self):
164
skipinitialspace=True,
165
)
166
data = self.data_table(reader)
167
-
168
- # TODO: Name can be set unconditionally when/if
169
- # self.filename will always be a string with the file name.
170
- # Currently, some tests pass StringIO instead of
171
- # the file name to a reader.
172
- if isinstance(self.filename, str):
173
- data.name = path.splitext(
174
- path.split(self.filename)[-1])[0]
+ data.name = path.splitext(path.split(self.filename)[-1])[0]
175
if error and isinstance(error, UnicodeDecodeError):
176
pos, endpos = error.args[2], error.args[3]
177
warning = ('Skipped invalid byte(s) in position '
0 commit comments