Skip to content

Commit 6a25e79

Browse files
committed
modifications
1 parent a9f3eae commit 6a25e79

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

zoomeye/sdk.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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)))

0 commit comments

Comments
 (0)