diff options
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/mallardwriter.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py index 67e93443..2fa38176 100644 --- a/giscanner/mallardwriter.py +++ b/giscanner/mallardwriter.py @@ -96,6 +96,12 @@ class MallardFormatterPython(MallardFormatter): else: return type_.target_fundamental + @classmethod + def format(cls, doc): + doc = MallardFormatter.format(doc) + doc = doc.replace('%NULL', 'None') + return doc + class MallardWriter(object): def __init__(self, transformer, language): if language not in ["Python", "C"]: |