Skip to content

Commit c2611e8

Browse files
committed
Fix super() invocation for Python 2.7 compatibility
1 parent d30106f commit c2611e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygtrie.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ def __eq__(self, other):
13351335
result = self._eq_impl(other)
13361336
if result is not NotImplemented:
13371337
return result
1338-
return super().__eq__(other)
1338+
return super(Trie, self).__eq__(other)
13391339

13401340
def _eq_impl(self, other):
13411341
return self._root.equals(other._root) # pylint: disable=protected-access
@@ -1654,7 +1654,7 @@ def _eq_impl(self, other):
16541654
# different trie structure.
16551655
if self._separator != other._separator: # pylint: disable=protected-access
16561656
return NotImplemented
1657-
return super()._eq_impl(other)
1657+
return super(StringTrie, self)._eq_impl(other)
16581658

16591659
def _path_from_key(self, key):
16601660
return key.split(self._separator)

0 commit comments

Comments
 (0)