Skip to content

Commit e2bce80

Browse files
committed
rbnf: correctly dump rulesets/rules to JSON file
1 parent ea8343b commit e2bce80

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/import_cldr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ def _compact_dict(dict):
157157
def debug_repr(obj):
158158
if isinstance(obj, PluralRule):
159159
return obj.abstract
160+
if isinstance(obj, (rbnf.Ruleset, rbnf.Rule)):
161+
return vars(obj)
160162
return repr(obj)
161163

162164

0 commit comments

Comments
 (0)