Skip to content

Commit 0926981

Browse files
committed
.copy() instead of copy()
1 parent f4d06af commit 0926981

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sentry_sdk/scope.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,24 +238,24 @@ def __copy__(self):
238238
rv._name = self._name
239239
rv._fingerprint = self._fingerprint
240240
rv._transaction = self._transaction
241-
rv._transaction_info = dict(self._transaction_info)
241+
rv._transaction_info = self._transaction_info.copy()
242242
rv._user = self._user
243243

244-
rv._tags = dict(self._tags)
245-
rv._contexts = dict(self._contexts)
246-
rv._extras = dict(self._extras)
244+
rv._tags = self._tags.copy()
245+
rv._contexts = self._contexts.copy()
246+
rv._extras = self._extras.copy()
247247

248248
rv._breadcrumbs = copy(self._breadcrumbs)
249-
rv._n_breadcrumbs_truncated = copy(self._n_breadcrumbs_truncated)
250-
rv._event_processors = list(self._event_processors)
251-
rv._error_processors = list(self._error_processors)
249+
rv._n_breadcrumbs_truncated = self._n_breadcrumbs_truncated
250+
rv._event_processors = self._event_processors.copy()
251+
rv._error_processors = self._error_processors.copy()
252252
rv._propagation_context = self._propagation_context
253253

254254
rv._should_capture = self._should_capture
255255
rv._span = self._span
256256
rv._session = self._session
257257
rv._force_auto_session_tracking = self._force_auto_session_tracking
258-
rv._attachments = list(self._attachments)
258+
rv._attachments = self._attachments.copy()
259259

260260
rv._profile = self._profile
261261

0 commit comments

Comments
 (0)