Skip to content

Commit

Permalink
Table.from_table: Compare domains with is, not ==
Browse files Browse the repository at this point in the history
This ensures that after one calls data.transform(domain) the domain of the resulting data is set to the instance that was passed to transform.
  • Loading branch information
nikicc committed Jun 13, 2017
1 parent 9ba1d91 commit d2f2849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/data/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def match_type(x):
cached = _conversion_cache.get((id(domain), id(source)))
if cached:
return cached
if domain == source.domain:
if domain is source.domain:
return cls.from_table_rows(source, row_indices)

if isinstance(row_indices, slice):
Expand Down

0 comments on commit d2f2849

Please sign in to comment.