OreosLab / checkinpanel

global statement detected PYL-W0603
Anti-pattern
Major
2 years ago2 years old
Using the global statement
 13
 14    :return: Windows / Linux / Darwin / github / v2p / ql_new / ql /空
 15    """
 16    global ENV 17    if ENV:
 18        return ENV
 19
Using the global statement
20    :return: 签到配置文件对象
21    """
22    print_ver()
23    global DATA24    if DATA:
25        return DATA
26
Using the global statement
 18
 19
 20def log(info):
 21    global desp 22    desp = desp + info + "\n\n"
 23
 24
Using the global statement
 20
 21
 22def log(info: str):
 23    global desp 24    desp = desp + info + "\n"
 25
 26
Using the global statement
169
170
171def log(info: str):
172    global desp173    desp = desp + info + "\n"
174
175