Skip to content

Commit 0536d6a

Browse files
committed
update core.py
1 parent 231726e commit 0536d6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zoomeye/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
zoomeye_dir = os.path.expanduser(config.ZOOMEYE_CONFIG_PATH)
1717

1818

19-
def key_init(key):
19+
def init_key(key):
2020
"""
2121
initialize through the api key, write the api key to the local configuration file,
2222
theoretically it will never expire unless you remake the api key
@@ -52,7 +52,7 @@ def init(args):
5252
api_key = args.apikey
5353
# use api key init
5454
if api_key:
55-
key_init(api_key)
55+
init_key(api_key)
5656
return
5757
# invalid parameter
5858
show.printf("input parameter error", color="red")

0 commit comments

Comments
 (0)