File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def find(self, key):
61
61
:param key: str, dictionary key like: "a.b.c"
62
62
:return:
63
63
"""
64
- value = None
64
+ values = None
65
65
# is dict?
66
66
if isinstance (self .dict , dict ):
67
67
keys = key .split ("." )
@@ -70,16 +70,16 @@ def find(self, key):
70
70
if k == 'geoinfo' and inputData .get (k ) == None :
71
71
k = "aiweninfo" if inputData .get ("aiweninfo" ) else "ipipinfo"
72
72
if inputData .get (k ) is not None :
73
- value = inputData .get (k )
73
+ values = inputData .get (k )
74
74
else :
75
- value = None
76
- if isinstance (value , list ):
77
- if len (value ) != 0 :
78
- value = value [0 ]
75
+ values = None
76
+ if isinstance (values , list ):
77
+ if len (values ) != 0 :
78
+ values = values [0 ]
79
79
else :
80
- value = '[unknown]'
81
- inputData = value
82
- return value
80
+ values = '[unknown]'
81
+ inputData = values
82
+ return values
83
83
else :
84
84
raise TypeError ("the parameter you pass in must be a dictionary, not a {}" .format (type (self .dict )))
85
85
You can’t perform that action at this time.
0 commit comments