[CP] 升级脚本python3改造

This commit is contained in:
zhaoyiping0622
2024-07-02 11:41:44 +00:00
committed by ob-robot
parent 7efcb54714
commit 99432b79bd
12 changed files with 434 additions and 399 deletions

View File

@ -173,15 +173,15 @@ def deal_with_local_opt(opt, filename):
if 'help' == opt.get_long_name():
if 'upgrade_pre' == filename:
global pre_help_str
print pre_help_str
print(pre_help_str)
elif 'upgrade_post' == filename:
global post_help_str
print post_help_str
print(post_help_str)
else:
raise MyError('not supported filename:{0} for help option'.format(filename))
elif 'version' == opt.get_long_name():
global version_str
print version_str
print(version_str)
def deal_with_local_opts(filename):
global g_opts