File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,20 +65,20 @@ def find(self, key):
6565 # is dict?
6666 if isinstance (self .dict , dict ):
6767 keys = key .split ("." )
68- input_data = self .dict
68+ inputData = self .dict
6969 for k in keys :
70- if k == 'geoinfo' and input_data .get (k ) == None :
71- k = "aiweninfo" if input_data .get ("aiweninfo" ) else "ipipinfo"
72- if input_data .get (k ) is not None :
73- value = input_data .get (k )
70+ if k == 'geoinfo' and inputData .get (k ) == None :
71+ k = "aiweninfo" if inputData .get ("aiweninfo" ) else "ipipinfo"
72+ if inputData .get (k ) is not None :
73+ value = inputData .get (k )
7474 else :
7575 value = None
7676 if isinstance (value , list ):
7777 if len (value ) != 0 :
7878 value = value [0 ]
7979 else :
8080 value = '[unknown]'
81- input_data = value
81+ inputData = value
8282 return value
8383 else :
8484 raise TypeError ("the parameter you pass in must be a dictionary, not a {}" .format (type (self .dict )))
You can’t perform that action at this time.
0 commit comments