From 13026702bdf3acb234da6879cfb95ea357fa6aef Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Wed, 3 Apr 2013 18:58:55 +0200 Subject: [PATCH] Whitespace --- modules/750g/pages.py | 2 +- modules/allrecipes/pages.py | 2 +- modules/gdcvault/pages.py | 4 ++-- weboob/applications/qcineoob/main_window.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/750g/pages.py b/modules/750g/pages.py index f141a88da7..91420d1838 100644 --- a/modules/750g/pages.py +++ b/modules/750g/pages.py @@ -126,7 +126,7 @@ def get_recipe(self, id): author = comtxt.split('par ')[-1].split('|')[0] comtxt = comtxt.replace('par %s' % author, '') comments.append(Comment(text=comtxt, author=author)) - + links_author = self.parser.select(self.document.getroot(), 'p.auteur a.couleur_membre') if len(links_author) > 0: author = unicode(links_author[0].text.strip()) diff --git a/modules/allrecipes/pages.py b/modules/allrecipes/pages.py index 005f783a9b..43f50c99ca 100644 --- a/modules/allrecipes/pages.py +++ b/modules/allrecipes/pages.py @@ -90,7 +90,7 @@ def get_recipe(self, id): num_instr = 1 for inst in l_divinst: instructions += '%s: %s\n' % (num_instr, inst.text_content()) - num_instr += 1 + num_instr += 1 prepmin = 0 emprep = self.parser.select(self.document.getroot(), 'span#prepHoursSpan em') diff --git a/modules/gdcvault/pages.py b/modules/gdcvault/pages.py index ef5c3d1ecb..fefa386f41 100644 --- a/modules/gdcvault/pages.py +++ b/modules/gdcvault/pages.py @@ -169,8 +169,8 @@ def get_video(self, video=None): # headers = req.info() # if headers.get('Content-Type', '') == 'text/html' and headers.get('Content-Length', '') == '2': # print 'BUG' - - + + #print req.code except HTTPError, e: #print e.getcode() diff --git a/weboob/applications/qcineoob/main_window.py b/weboob/applications/qcineoob/main_window.py index 61a528a5c7..4200160f1d 100644 --- a/weboob/applications/qcineoob/main_window.py +++ b/weboob/applications/qcineoob/main_window.py @@ -330,7 +330,7 @@ def searchId(self, id, stype): exec('object = backend.get_%s(id)' % (stype)) if object: func_display = 'self.display' + stype[0].upper() + stype[1:] - exec("self.doAction('Details of %s \"%%s\"' %% object.%s, %s, [object, backend])" % + exec("self.doAction('Details of %s \"%%s\"' %% object.%s, %s, [object, backend])" % (stype, title_field, func_display)) QApplication.restoreOverrideCursor() -- GitLab