Skip to content

Commit bfd4121

Browse files
authored
use dict in Record.serialize (#739)
1 parent 99b96dc commit bfd4121

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pynetbox/core/response.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""
1616

1717
import copy
18-
from collections import OrderedDict
1918
from urllib.parse import urlsplit
2019

2120
import pynetbox.core.app
@@ -528,7 +527,7 @@ def serialize(self, nested=False, init=False):
528527
all([isinstance(v, str) for v in current_val])
529528
or all([isinstance(v, int) for v in current_val])
530529
):
531-
current_val = list(OrderedDict.fromkeys(current_val))
530+
current_val = list(dict.fromkeys(current_val))
532531
ret[i] = current_val
533532

534533
return ret

0 commit comments

Comments
 (0)