Skip to content

Commit 3da3b03

Browse files
committed
faster copy
1 parent a156a0b commit 3da3b03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graphql/execution/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: utf-8 -*-
22
import sys
3-
import copy
43

54
from ..error import GraphQLError
65
from ..language import ast
@@ -324,7 +323,7 @@ def clone(self):
324323
operation=self.operation,
325324
variable_values=self.variable_values,
326325
context=self.context,
327-
path=copy.copy(self.path)
326+
path=self.path[:] if self.path else []
328327
)
329328

330329

0 commit comments

Comments
 (0)