diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-11-01 19:50:30 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-11-01 19:50:30 +0800 |
| commit | 83ce9c8f70fe655347796c164332dd6b286057eb (patch) | |
| tree | 0c67e998233d1236f94529a938ff77b0f37482f2 /stdlib.py | |
| parent | ff22eb51563f03659ed60daac92f2f79fdc16234 (diff) | |
update code quality
Diffstat (limited to 'stdlib.py')
| -rwxr-xr-x | stdlib.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -146,7 +146,7 @@ def aprintf(*value: str, interval=0.01, end=None): printf(i) if ani: sleep(interval) - if end == None: + if end is None: printf(f'{ascii.color.reset}\n') else: printf(end) @@ -245,9 +245,9 @@ def runutil(file: str, *arg) -> any: # catch & handle signals def sigcatch(sig, error=None, sysexit=False, handler=None): from signal import signal - if handler != None: + if handler is not None: pass - elif error == None: + elif error is None: def handler(sig, stack): printerror(f"catched kill signal: {sig}") if sysexit: |
