Commit 773a0cd3 authored by Larry Hastings's avatar Larry Hastings

Issue #20300: Fix exception when setting conversion class member "default"

to None.
parent b86caf18
......@@ -3446,8 +3446,10 @@ class DSLParser:
a = [p.name]
if p.converter.is_optional():
a.append('=')
value = p.converter.default
a.append(p.converter.py_default)
value = p.converter.py_default
if not value:
value = str(p.converter.default)
a.append(value)
s = fix_right_bracket_count(p.right_bracket_count)
s += "".join(a)
if add_comma:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment