mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Replace boolean test with is None.
This commit is contained in:
parent
1931ca72b5
commit
f13eb55d59
6 changed files with 10 additions and 10 deletions
|
@ -479,7 +479,7 @@ class TestSGMLParser(SGMLParser):
|
|||
def test(args = None):
|
||||
import sys
|
||||
|
||||
if not args:
|
||||
if args is None:
|
||||
args = sys.argv[1:]
|
||||
|
||||
if args and args[0] == '-s':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue