We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 231726e commit 0536d6aCopy full SHA for 0536d6a
1 file changed
zoomeye/core.py
@@ -16,7 +16,7 @@
16
zoomeye_dir = os.path.expanduser(config.ZOOMEYE_CONFIG_PATH)
17
18
19
-def key_init(key):
+def init_key(key):
20
"""
21
initialize through the api key, write the api key to the local configuration file,
22
theoretically it will never expire unless you remake the api key
@@ -52,7 +52,7 @@ def init(args):
52
api_key = args.apikey
53
# use api key init
54
if api_key:
55
- key_init(api_key)
+ init_key(api_key)
56
return
57
# invalid parameter
58
show.printf("input parameter error", color="red")
0 commit comments