Skip to content

Commit 777eea6

Browse files
committed
rbnf: correctly dump rulesets/rules to JSON file
1 parent efb5724 commit 777eea6

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
@@ -152,6 +152,8 @@ def _compact_dict(dict):
152152
def debug_repr(obj):
153153
if isinstance(obj, PluralRule):
154154
return obj.abstract
155+
if isinstance(obj, (rbnf.Ruleset, rbnf.Rule)):
156+
return vars(obj)
155157
return repr(obj)
156158

157159

0 commit comments

Comments
 (0)