Skip to content

Commit 3f22375

Browse files
committed
Just use list copy
1 parent 7d108b1 commit 3f22375

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tiled/_tests/test_access_control.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import copy
21
import json
32

43
import numpy
@@ -58,7 +57,7 @@ async def allowed_scopes(self, node, principal, path_parts):
5857
)
5958
remove_scope = node.metadata().get("remove_scope", None)
6059
if remove_scope in allowed:
61-
allowed = copy.copy(allowed)
60+
allowed = allowed.copy()
6261
allowed.remove(remove_scope)
6362
return allowed
6463

0 commit comments

Comments
 (0)