diff options
| author | Raymond Hettinger <python@rcn.com> | 2002-06-01 03:06:31 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 03:06:31 +0000 |
| commit | 02aebcdec6342f69f8787fcd139653f874c4e2c6 (patch) | |
| tree | 9aa96d7c1a537b86220b3fe7346f73b1e0711eb7 /Lib/inspect.py | |
| parent | ed9b5eb892fe387de08b75d067c76198779620e5 (diff) | |
| download | cpython-02aebcdec6342f69f8787fcd139653f874c4e2c6.tar.gz | |
Replaced boolean test with is None
Diffstat (limited to 'Lib/inspect.py')
| -rw-r--r-- | Lib/inspect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index 2f9511a0ee..ecd3fc925d 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -665,9 +665,9 @@ def formatargspec(args, varargs=None, varkw=None, defaults=None, if defaults and i >= firstdefault: spec = spec + formatvalue(defaults[i - firstdefault]) specs.append(spec) - if varargs: + if varargs is not None: specs.append(formatvarargs(varargs)) - if varkw: + if varkw is not None: specs.append(formatvarkw(varkw)) return '(' + string.join(specs, ', ') + ')' |
