summaryrefslogtreecommitdiff
path: root/giscanner/xmlwriter.py
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2009-01-14 17:39:36 +0000
committerColin Walters <walters@src.gnome.org>2009-01-14 17:39:36 +0000
commitd143e93b69905f26c8d2d8c6043e029d49838c16 (patch)
tree518e336443fe6e8e7ebf4f85bd2ea5af699866b9 /giscanner/xmlwriter.py
parentaa65e25afcfb76fb79f550cf095df6a267ff9ac1 (diff)
downloadgobject-introspection-d143e93b69905f26c8d2d8c6043e029d49838c16.tar.gz
Add generated file warning comment
We don't want people manually editing .gir files. svn path=/trunk/; revision=1034
Diffstat (limited to 'giscanner/xmlwriter.py')
-rw-r--r--giscanner/xmlwriter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/xmlwriter.py b/giscanner/xmlwriter.py
index bed3f991..3c141621 100644
--- a/giscanner/xmlwriter.py
+++ b/giscanner/xmlwriter.py
@@ -101,6 +101,9 @@ class XMLWriter(object):
def write_line(self, line=''):
self._data.write('%s%s\n' % (self._indent_char * self._indent, line))
+ def write_comment(self, text):
+ self.write_line('<!-- %s -->' % (text, ))
+
def write_tag(self, tag_name, attributes, data=None):
if attributes is None:
attributes = []