changeset 5726:e7914bd67889

googleimport: fixed (c), minor code reformatting
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 20 Nov 2010 19:21:41 +0100
parents b5eb497c549c
children 17bcec43f773
files contrib/googleimport/driver.py
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/googleimport/driver.py	Wed Nov 17 10:13:44 2010 +0100
+++ b/contrib/googleimport/driver.py	Sat Nov 20 19:21:41 2010 +0100
@@ -4,16 +4,17 @@
 
 full of evil antipatterns, incl. Exception exceptions
 
-@copyright: 2007 MoinMoin:AlexanderSchremmer
-@license: GPL v2
+@copyright: 2007,2010 MoinMoin:AlexanderSchremmer
+@license: GNU GPL v2
+"""
 
-"""
 import sys
 import re
 import urllib2
 from urllib import quote
 import xmlrpclib
 import csv
+
 from MoinMoin.web.contexts import ScriptContext
 from MoinMoin.Page import Page
 
@@ -38,8 +39,9 @@
         self.desc = request.redirectedOutput(page.send_page, content_only=1).replace("\n", " ")
 
     def __repr__(self):
-        return (u"<Task summary=%r label=%r hours=%i mentors=%r difficulty=%r types=%r desc='''%s'''>" % (self.summary, self.label,
-            self.hours, self.mentors, self.difficulty, self.types, self.desc[:100] )).encode("utf-8")
+        return (u"<Task summary=%r label=%r hours=%i mentors=%r difficulty=%r types=%r desc='''%s'''>" % (
+            self.summary, self.label, self.hours, self.mentors, self.difficulty,
+            self.types, self.desc[:100])).encode("utf-8")
 
 
 def find_dict_entry(name, text):
@@ -48,6 +50,7 @@
         raise DataNotFoundException("%s not found" % (name, ))
     return m.groups()[0]
 
+
 desc_pattern = r"""= Description =
 ([\s\S]*?)
 = Discussion ="""