diff --git a/orangecontrib/text/corpus.py b/orangecontrib/text/corpus.py index b27f096ab..2af7e5161 100644 --- a/orangecontrib/text/corpus.py +++ b/orangecontrib/text/corpus.py @@ -544,8 +544,6 @@ def from_table(cls, domain, source, row_indices=...): c = super().from_table(domain, source, row_indices) c._setup_corpus() Corpus.retain_preprocessing(source, c, row_indices) - # temp fix: remove when oldest Orange >= 3.34 - c.attributes = deepcopy(c.attributes) return c @classmethod @@ -587,8 +585,6 @@ def from_table_rows(cls, source, row_indices): if hasattr(source, "_titles"): # covering case when from_table_rows called by from_table c._titles = source._titles[row_indices] - # temp fix: remove when oldest Orange >= 3.34 - c.attributes = deepcopy(c.attributes) return c @classmethod diff --git a/orangecontrib/text/tests/test_corpus.py b/orangecontrib/text/tests/test_corpus.py index ac9b6e7cf..42a82df92 100644 --- a/orangecontrib/text/tests/test_corpus.py +++ b/orangecontrib/text/tests/test_corpus.py @@ -671,20 +671,6 @@ def test_language_copied(self): self.assertEqual(new_corpus.language, "sl") self.assertEqual(corpus.language, "en") - def test_remove_attributes_copy(self): - """ - Happy new year! - - We added a deepcopy of attributes to from_table and from_table_rows - since Orange didn't copy attributes. It should be removed when oldest - supported Orange is 3.34 or higher. - When test starts to fail: - - remove it - - remove copying of attributes in from_table and from_table_rows - - update Orange version to >=3.34 if not done yet - """ - self.assertLess(datetime.today(), datetime(2024, 1, 1)) - def test_language_unpickle(self): path = os.path.dirname(__file__) file = os.path.abspath(os.path.join(path, "data", "book-excerpts.pkl"))