summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/sets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/sets.py b/Lib/sets.py
index e88e845c1f..10138fca5e 100644
--- a/Lib/sets.py
+++ b/Lib/sets.py
@@ -154,7 +154,8 @@ class BaseSet(object):
"""
if not isinstance(other, BaseSet):
return NotImplemented
- result = self.__class__(self._data)
+ result = self.__class__()
+ result._data = self._data.copy()
result._data.update(other._data)
return result