Skip to content

Commit dc49c96

Browse files
committed
there is no list.copy() in python2
1 parent 7f759a6 commit dc49c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compas_fab/robots/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
def joint_names_validator(joint_names, key=None, value=None):
15-
new_joint_names = joint_names.copy()
15+
new_joint_names = list(joint_names)
1616
if key is not None and value is not None:
1717
new_joint_names.__setitem__(key, value)
1818
if len(new_joint_names) != len(set(new_joint_names)):

0 commit comments

Comments
 (0)