Skip to content

Commit

Permalink
Just use set copy
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaytan committed Jan 8, 2025
1 parent d0f0b84 commit 5a5fa75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tiled/_tests/test_access_control.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import copy
import json

import numpy
Expand Down Expand Up @@ -58,7 +57,7 @@ async def allowed_scopes(self, node, principal, path_parts):
)
remove_scope = node.metadata().get("remove_scope", None)
if remove_scope in allowed:
allowed = copy.copy(allowed)
allowed = allowed.copy()
allowed.remove(remove_scope)
return allowed

Expand Down

0 comments on commit 5a5fa75

Please sign in to comment.