[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [lego/master] Fix typo



commit 1375171fb624fe69cf3a88677198cf5bbb4d222a
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Mon Sep 2 18:43:04 2019 +0200

    Fix typo
---
 packages/xml-to-html/lektor_xml_to_html.py | 4 ++--
 packages/xml-to-html/setup.py              | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/packages/xml-to-html/lektor_xml_to_html.py b/packages/xml-to-html/lektor_xml_to_html.py
index 635453a..45f094c 100644
--- a/packages/xml-to-html/lektor_xml_to_html.py
+++ b/packages/xml-to-html/lektor_xml_to_html.py
@@ -15,7 +15,7 @@ root = etree.fromstring(content)
 items = root.findall('channel/item')
 file_object  = open('../../templates/stream.html', 'w')
 for entry in items:
-  title = entry.findtext('title'))
-  link = entry.findtext('link'))
+  title = entry.findtext('title')
+  link = entry.findtext('link')
   file_object.write("<h3><a href=\"" + link +"\">" + title + "</a></h3>")
   file.close()
diff --git a/packages/xml-to-html/setup.py b/packages/xml-to-html/setup.py
index ef2021c..612e02a 100644
--- a/packages/xml-to-html/setup.py
+++ b/packages/xml-to-html/setup.py
@@ -10,7 +10,7 @@ setup(
     py_modules=['lektor_xml_to_html'],
     entry_points={
         'lektor.plugins': [
-            'xml-to-html = lektor_xml_to_html:XMLToHtmlPlugin',
+            'xml-to-html = lektor_xml_to_html:XmlToHtmlPlugin',
         ]
     }
 )

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits