Skip to content

Commit

Permalink
修改版本
Browse files Browse the repository at this point in the history
  • Loading branch information
刘志永 committed Sep 1, 2021
1 parent 5221994 commit 5dda8ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kernel/python/kernel/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.2'
__version__ = '1.0.3'
7 changes: 4 additions & 3 deletions kernel/python/kernel/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@


class Context:
config = None
config:dict = None
def __init__(self,config):
self.config = TeaModel.to_map(config)
self.config = config.__dict__
def get_config(self,key):
if(self.config[key] is None or self.config[key] == ''):
print(self.config[key])
if(self.config[key] is None or str(self.config[key]) == ''):
return ''
else:
return str(self.config[key])
2 changes: 1 addition & 1 deletion kernel/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
AUTHOR_EMAIL = "alibaba-cloud-sdk-dev-team@list.alibaba-inc.com"
URL = "https://github.com/eleme/anubis-openapi-third/tree/main/kernel/python"
TOPDIR = os.path.dirname(__file__) or "."
VERSION = "1.0.2"
VERSION = "1.0.3"

with open("README.md", encoding="utf-8") as fp:
LONG_DESCRIPTION = fp.read()
Expand Down

0 comments on commit 5dda8ef

Please sign in to comment.