summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-08-22 14:55:41 -0400
committerColin Walters <walters@verbum.org>2011-08-22 14:55:41 -0400
commite10c3e3f1a9e8fd5bb966f1782aa9afa53c6728e (patch)
tree529b04046a8c0f6eb6b691102d57e0e45416aa7b
parent86f15bd103a2781707969edc21aa6973822d09fb (diff)
downloadgobject-introspection-e10c3e3f1a9e8fd5bb966f1782aa9afa53c6728e.tar.gz
docbookdescription.py: Fix for PEP-8 compliance
-rw-r--r--giscanner/docbookdescription.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/giscanner/docbookdescription.py b/giscanner/docbookdescription.py
index 70672ac7..9ec7219d 100644
--- a/giscanner/docbookdescription.py
+++ b/giscanner/docbookdescription.py
@@ -1,7 +1,7 @@
TAG_PROGRAM_LISTING = '<programlisting'
TAG_CDATA = '<![CDATA['
-TAGS = {TAG_PROGRAM_LISTING, TAG_CDATA, ']]>', '</programlisting>'}
+TAGS = {TAG_PROGRAM_LISTING, TAG_CDATA, ']]>', '</programlisting>'}
def get_formatted_description(description):
desc = description.replace("|[", "<informalexample><programlisting>") \
@@ -177,9 +177,9 @@ def test():
assert _is_valid_xml_tag('a href="http://www.gtk.org" title="&lt;i&gt;Our&lt;/i&gt; website"')
assert _is_valid_xml_tag('ulink \nurl="http://www.freedesktop.org/Standards/wm-spec"')
- string = 'gtk_label_set_markup (label, "Go to the <a href="http://www.gtk.org" title="&lt;i&gt;Our&lt;/i&gt; website">GTK+ website</a> for more...");'
+ string = 'gtk_label_set_markup (label, "Go to the <a href="http://www.gtk.org" ' \
+ + 'title="&lt;i&gt;Our&lt;/i&gt; website">GTK+ website</a> for more...");'
assert _escape_lt_not_in_xml_tag(string) == string
if __name__ == '__main__':
test()
-