[gobject-introspection] docbookdescription.py: Fix for PEP-8 compliance
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] docbookdescription.py: Fix for PEP-8 compliance
- Date: Mon, 22 Aug 2011 18:58:09 +0000 (UTC)
commit e10c3e3f1a9e8fd5bb966f1782aa9afa53c6728e
Author: Colin Walters <walters verbum org>
Date: Mon Aug 22 14:55:41 2011 -0400
docbookdescription.py: Fix for PEP-8 compliance
giscanner/docbookdescription.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/docbookdescription.py b/giscanner/docbookdescription.py
index 70672ac..9ec7219 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="<i>Our</i> 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="<i>Our</i> website">GTK+ website</a> for more...");'
+ string = 'gtk_label_set_markup (label, "Go to the <a href="http://www.gtk.org" ' \
+ + 'title="<i>Our</i> website">GTK+ website</a> for more...");'
assert _escape_lt_not_in_xml_tag(string) == string
if __name__ == '__main__':
test()
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]