Remove trailing empty lines
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 24 Nov 2015 14:08:47 +0100
changeset 10907 9ae707db5265
parent 10906 e1ce0866afe9
child 10908 f80428f94761
Remove trailing empty lines Makes pep8 happier
__init__.py
_exceptions.py
cwvreg.py
dataimport/csv.py
dataimport/deprecated.py
dataimport/stores.py
dataimport/test/test_massive_store.py
devtools/__init__.py
devtools/test/data/schema.py
entities/lib.py
etwist/__init__.py
ext/test/data/views.py
hooks/integrity.py
hooks/security.py
hooks/workflow.py
hooks/zmq.py
misc/cwfs/cwfs.py
misc/cwzope/cwzope.py
misc/migration/3.10.0_Any.py
misc/scripts/ldapuser2ldapfeed.py
multipart.py
pylintext.py
schemas/base.py
server/test/data-cwep002/schema.py
server/test/data-migractions/cubes/fakeemail/schema.py
server/test/data-schema2sql/schema/Dates.py
server/test/data-schema2sql/schema/schema.py
server/test/data-schemaserial/schema.py
server/test/data-schemaserial/site_cubicweb.py
server/test/data/migration/postcreate.py
server/utils.py
sobjects/ldapparser.py
tags.py
test/data/cubes/file/__pkginfo__.py
test/data/rqlexpr_on_computedrel.py
test/data_schemareader/schema.py
test/unittest_entity.py
test/unittest_mail.py
test/unittest_predicates.py
test/unittest_uilib.py
web/action.py
web/box.py
web/controller.py
web/cors.py
web/form.py
web/formwidgets.py
web/htmlwidgets.py
web/httpcache.py
web/test/unittest_views_editforms.py
web/test/unittest_views_staticcontrollers.py
web/test/unittest_webconfig.py
web/uicfg.py
web/views/authentication.py
web/views/basecontrollers.py
web/views/csvexport.py
web/views/formrenderers.py
web/views/idownloadable.py
web/views/reledit.py
web/views/startup.py
web/views/tableview.py
web/views/wdoc.py
web/views/xbel.py
--- a/__init__.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/__init__.py	Tue Nov 24 14:08:47 2015 +0100
@@ -263,4 +263,3 @@
     not be processed, a memory allocation error occurred during processing,
     etc.
     """
-
--- a/_exceptions.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/_exceptions.py	Tue Nov 24 14:08:47 2015 +0100
@@ -207,4 +207,3 @@
 
 # pylint: disable=W0611
 from logilab.common.clcommands import BadCommandUsage
-
--- a/cwvreg.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/cwvreg.py	Tue Nov 24 14:08:47 2015 +0100
@@ -655,4 +655,3 @@
     'TZTime':     time,
     'Interval':   timedelta,
     })
-
--- a/dataimport/csv.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/dataimport/csv.py	Tue Nov 24 14:08:47 2015 +0100
@@ -118,4 +118,3 @@
                 decoded = row
             if not skip_empty or any(decoded):
                 yield decoded
-
--- a/dataimport/deprecated.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/dataimport/deprecated.py	Tue Nov 24 14:08:47 2015 +0100
@@ -461,5 +461,3 @@
             return callfunc_every(self.store.commit,
                                   self.commitevery,
                                   self.get_data(datakey))
-
-
--- a/dataimport/stores.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/dataimport/stores.py	Tue Nov 24 14:08:47 2015 +0100
@@ -326,4 +326,3 @@
 
     def gen_owned_by(self, entity):
         return self._cnx.user.eid
-
--- a/dataimport/test/test_massive_store.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/dataimport/test/test_massive_store.py	Tue Nov 24 14:08:47 2015 +0100
@@ -265,4 +265,3 @@
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main
     unittest_main()
-
--- a/devtools/__init__.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/devtools/__init__.py	Tue Nov 24 14:08:47 2015 +0100
@@ -957,5 +957,3 @@
     handler = get_test_db_handler(config)
     handler.build_db_cache()
     return handler.get_repo_and_cnx()
-
-
--- a/devtools/test/data/schema.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/devtools/test/data/schema.py	Tue Nov 24 14:08:47 2015 +0100
@@ -30,4 +30,3 @@
     cost = Int()
     description	= String(maxsize=4096, fulltextindexed=True)
     identical_to = SubjectRelation('Bug', symmetric=True)
-
--- a/entities/lib.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/entities/lib.py	Tue Nov 24 14:08:47 2015 +0100
@@ -147,4 +147,3 @@
         if date:
             return date > self.timestamp
         return False
-
--- a/etwist/__init__.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/etwist/__init__.py	Tue Nov 24 14:08:47 2015 +0100
@@ -18,4 +18,3 @@
 """ CW - nevow/twisted client
 
 """
-
--- a/ext/test/data/views.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/ext/test/data/views.py	Tue Nov 24 14:08:47 2015 +0100
@@ -21,4 +21,3 @@
 
 class CustomRsetTableView(tableview.RsetTableView):
     __regid__ = 'mytable'
-
--- a/hooks/integrity.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/hooks/integrity.py	Tue Nov 24 14:08:47 2015 +0100
@@ -339,4 +339,3 @@
                         if rschema.symmetric]
     EnsureSymmetricRelationsAdd.__select__ = hook.Hook.__select__ & hook.match_rtype(*symmetric_rtypes)
     EnsureSymmetricRelationsDelete.__select__ = hook.Hook.__select__ & hook.match_rtype(*symmetric_rtypes)
-
--- a/hooks/security.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/hooks/security.py	Tue Nov 24 14:08:47 2015 +0100
@@ -207,4 +207,3 @@
         rdef = rschema.rdef(self._cw.entity_metas(self.eidfrom)['type'],
                             self._cw.entity_metas(self.eidto)['type'])
         rdef.check_perm(self._cw, 'delete', fromeid=self.eidfrom, toeid=self.eidto)
-
--- a/hooks/workflow.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/hooks/workflow.py	Tue Nov 24 14:08:47 2015 +0100
@@ -355,4 +355,3 @@
         typewf = entity.cw_adapt_to('IWorkflowable').cwetype_workflow()
         if typewf is not None:
             _WorkflowChangedOp(self._cw, eid=self.eidfrom, wfeid=typewf.eid)
-
--- a/hooks/zmq.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/hooks/zmq.py	Tue Nov 24 14:08:47 2015 +0100
@@ -48,5 +48,3 @@
         for address in address_sub:
             self.repo.app_instances_bus.add_subscriber(address)
         self.repo.app_instances_bus.start()
-
-
--- a/misc/cwfs/cwfs.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/misc/cwfs/cwfs.py	Tue Nov 24 14:08:47 2015 +0100
@@ -173,4 +173,3 @@
 def to_rql(path) :
     p = SytPathParser(SCHEMA,path)
     return p.parse()
-
--- a/misc/cwzope/cwzope.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/misc/cwzope/cwzope.py	Tue Nov 24 14:08:47 2015 +0100
@@ -48,4 +48,3 @@
         cnx = connect(user, password, host, database, group)
         CNX_CACHE[key] = cnx
         return cnx
-
--- a/misc/migration/3.10.0_Any.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/misc/migration/3.10.0_Any.py	Tue Nov 24 14:08:47 2015 +0100
@@ -35,4 +35,3 @@
              'X pkey ~= "boxes.%" OR '
              'X pkey ~= "contentnavigation.%"').entities():
     x.cw_set(pkey=u'ctxcomponents.' + x.pkey.split('.', 1)[1])
-
--- a/misc/scripts/ldapuser2ldapfeed.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/misc/scripts/ldapuser2ldapfeed.py	Tue Nov 24 14:08:47 2015 +0100
@@ -96,4 +96,3 @@
 else:
     rollback()
     print('rolled back')
-
--- a/multipart.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/multipart.py	Tue Nov 24 14:08:47 2015 +0100
@@ -414,4 +414,3 @@
     except MultipartError:
         if strict: raise
     return forms, files
-
--- a/pylintext.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/pylintext.py	Tue Nov 24 14:08:47 2015 +0100
@@ -48,4 +48,3 @@
 def register(linter):
     """called when loaded by pylint --load-plugins, nothing to do here"""
     MANAGER.register_transform(nodes.Module, cubicweb_transform)
-
--- a/schemas/base.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/schemas/base.py	Tue Nov 24 14:08:47 2015 +0100
@@ -379,5 +379,3 @@
         'add':    ('managers', RRQLExpression('U has_update_permission S'),),
         'delete': ('managers', RRQLExpression('U has_update_permission S'),),
         }
-
-
--- a/server/test/data-cwep002/schema.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/server/test/data-cwep002/schema.py	Tue Nov 24 14:08:47 2015 +0100
@@ -33,4 +33,3 @@
 class has_employee(ComputedRelation):
     rule = 'O works_for S'
     __permissions__ = {'read': ('managers',)}
-
--- a/server/test/data-migractions/cubes/fakeemail/schema.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/server/test/data-migractions/cubes/fakeemail/schema.py	Tue Nov 24 14:08:47 2015 +0100
@@ -84,5 +84,3 @@
         subject = 'Comment'
         name = 'generated_by'
         object = 'Email'
-
-
--- a/server/test/data-schema2sql/schema/Dates.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/server/test/data-schema2sql/schema/Dates.py	Tue Nov 24 14:08:47 2015 +0100
@@ -26,4 +26,3 @@
     d2  = Date(default=date(2007, 12, 11))
     t1  = Time(default=time(8, 40))
     t2  = Time(default=time(9, 45))
-
--- a/server/test/data-schema2sql/schema/schema.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/server/test/data-schema2sql/schema/schema.py	Tue Nov 24 14:08:47 2015 +0100
@@ -110,4 +110,3 @@
         'add': ('managers',),
         'delete': ('managers',),
         }
-
--- a/server/test/data-schemaserial/schema.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/server/test/data-schemaserial/schema.py	Tue Nov 24 14:08:47 2015 +0100
@@ -29,4 +29,3 @@
     inline2 = SubjectRelation('Affaire', inlined=True, cardinality='?*')
 
     custom_field_of_jungle = BabarTestType(jungle_speed=42)
-
--- a/server/test/data-schemaserial/site_cubicweb.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/server/test/data-schemaserial/site_cubicweb.py	Tue Nov 24 14:08:47 2015 +0100
@@ -27,4 +27,3 @@
 def dumb_sort(something):
     return something
 register_sqlite_pyfunc(dumb_sort)
-
--- a/server/test/data/migration/postcreate.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/server/test/data/migration/postcreate.py	Tue Nov 24 14:08:47 2015 +0100
@@ -35,4 +35,3 @@
 wf.add_transition(u'start', pitetre, encours)
 wf.add_transition(u'end', encours, finie)
 commit()
-
--- a/server/utils.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/server/utils.py	Tue Nov 24 14:08:47 2015 +0100
@@ -241,4 +241,3 @@
 from logging import getLogger
 from cubicweb import set_log_methods
 set_log_methods(TasksManager, getLogger('cubicweb.repository'))
-
--- a/sobjects/ldapparser.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/sobjects/ldapparser.py	Tue Nov 24 14:08:47 2015 +0100
@@ -239,4 +239,3 @@
             self.error('group %r referenced by source configuration %r does not exist',
                        name, self.source.uri)
             return None
-
--- a/tags.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/tags.py	Tue Nov 24 14:08:47 2015 +0100
@@ -59,4 +59,3 @@
     html += options
     html.append(u'</select>')
     return u'\n'.join(html)
-
--- a/test/data/cubes/file/__pkginfo__.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/test/data/cubes/file/__pkginfo__.py	Tue Nov 24 14:08:47 2015 +0100
@@ -23,4 +23,3 @@
 
 numversion = (1, 4, 3)
 version = '.'.join(str(num) for num in numversion)
-
--- a/test/data/rqlexpr_on_computedrel.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/test/data/rqlexpr_on_computedrel.py	Tue Nov 24 14:08:47 2015 +0100
@@ -14,5 +14,3 @@
 class computed(ComputedRelation):
     rule = 'S relation O'
     __permissions__ = {'read': (RRQLExpression('S is ET'),)}
-
-
--- a/test/data_schemareader/schema.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/test/data_schemareader/schema.py	Tue Nov 24 14:08:47 2015 +0100
@@ -7,5 +7,3 @@
 cw_for_source.__permissions__ = {'read': ('managers', 'users'),
                                  'add': ('managers',),
                                  'delete': ('managers',)}
-
-
--- a/test/unittest_entity.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/test/unittest_entity.py	Tue Nov 24 14:08:47 2015 +0100
@@ -857,4 +857,3 @@
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main
     unittest_main()
-
--- a/test/unittest_mail.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/test/unittest_mail.py	Tue Nov 24 14:08:47 2015 +0100
@@ -149,4 +149,3 @@
 
 if __name__ == '__main__':
     unittest_main()
-
--- a/test/unittest_predicates.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/test/unittest_predicates.py	Tue Nov 24 14:08:47 2015 +0100
@@ -522,4 +522,3 @@
 
 if __name__ == '__main__':
     unittest_main()
-
--- a/test/unittest_uilib.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/test/unittest_uilib.py	Tue Nov 24 14:08:47 2015 +0100
@@ -200,4 +200,3 @@
 
 if __name__ == '__main__':
     unittest_main()
-
--- a/web/action.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/action.py	Tue Nov 24 14:08:47 2015 +0100
@@ -111,4 +111,3 @@
         return self._cw.vreg["etypes"].etype_class(ttype).cw_create_url(self._cw,
                                   __redirectpath=entity.rest_path(), __linkto=linkto,
                                   __redirectvid=self._cw.form.get('__redirectvid', ''))
-
--- a/web/box.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/box.py	Tue Nov 24 14:08:47 2015 +0100
@@ -195,4 +195,3 @@
 AjaxEditRelationBoxTemplate = class_renamed(
     'AjaxEditRelationBoxTemplate', AjaxEditRelationCtxComponent,
     '[3.10] AjaxEditRelationBoxTemplate has been renamed to AjaxEditRelationCtxComponent (%(cls)s)')
-
--- a/web/controller.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/controller.py	Tue Nov 24 14:08:47 2015 +0100
@@ -223,4 +223,3 @@
 
 from cubicweb import set_log_methods
 set_log_methods(Controller, LOGGER)
-
--- a/web/cors.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/cors.py	Tue Nov 24 14:08:47 2015 +0100
@@ -111,4 +111,3 @@
     # include "Vary: Origin" header (see 6.4)
     req.headers_out.addHeader('Vary', 'Origin')
     return origin
-
--- a/web/form.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/form.py	Tue Nov 24 14:08:47 2015 +0100
@@ -282,4 +282,3 @@
 
     def remaining_errors(self):
         return sorted(self.form_valerror.errors.items())
-
--- a/web/formwidgets.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/formwidgets.py	Tue Nov 24 14:08:47 2015 +0100
@@ -1096,4 +1096,3 @@
                '<img src="%(imgsrc)s" alt="%(label)s"/>%(label)s</a>' % {
             'label': label, 'imgsrc': imgsrc,
             'domid': self.domid, 'href': self.href}
-
--- a/web/htmlwidgets.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/htmlwidgets.py	Tue Nov 24 14:08:47 2015 +0100
@@ -365,5 +365,3 @@
     def itercols(self, rowindex):
         for column in self.columns:
             yield column, self.model.sortvalue(rowindex, column.rset_sortcol)
-
-
--- a/web/httpcache.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/httpcache.py	Tue Nov 24 14:08:47 2015 +0100
@@ -179,4 +179,3 @@
     ('if-none-match', if_none_match),
     #('if-modified-since', if_modified_since),
 ]
-
--- a/web/test/unittest_views_editforms.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/test/unittest_views_editforms.py	Tue Nov 24 14:08:47 2015 +0100
@@ -255,4 +255,3 @@
 
 if __name__ == '__main__':
     unittest_main()
-
--- a/web/test/unittest_views_staticcontrollers.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/test/unittest_views_staticcontrollers.py	Tue Nov 24 14:08:47 2015 +0100
@@ -173,4 +173,3 @@
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main
     unittest_main()
-
--- a/web/test/unittest_webconfig.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/test/unittest_webconfig.py	Tue Nov 24 14:08:47 2015 +0100
@@ -56,5 +56,3 @@
 
 if __name__ == '__main__':
     unittest_main()
-
-
--- a/web/uicfg.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/uicfg.py	Tue Nov 24 14:08:47 2015 +0100
@@ -26,4 +26,3 @@
 
 warn('[3.16] moved to cubicweb.web.views.uicfg',
      DeprecationWarning, stacklevel=2)
-
--- a/web/views/authentication.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/authentication.py	Tue Nov 24 14:08:47 2015 +0100
@@ -172,4 +172,3 @@
     def _authenticate(self, login, authinfo):
         sessionid = self.repo.connect(login, **authinfo)
         return self.repo._sessions[sessionid]
-
--- a/web/views/basecontrollers.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/basecontrollers.py	Tue Nov 24 14:08:47 2015 +0100
@@ -308,4 +308,3 @@
         req = self._cw
         msg = msg or req._("transaction undone")
         self._return_to_lastpage( dict(_cwmsgid= req.set_redirect_message(msg)) )
-
--- a/web/views/csvexport.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/csvexport.py	Tue Nov 24 14:08:47 2015 +0100
@@ -105,4 +105,3 @@
             writer.writerows(rows)
             # use two empty lines as separator
             writer.writerows([[], []])
-
--- a/web/views/formrenderers.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/formrenderers.py	Tue Nov 24 14:08:47 2015 +0100
@@ -544,4 +544,3 @@
             self._render_fields(fields, w, form)
         self.render_child_forms(w, form, values)
         w(u'</fieldset>')
-
--- a/web/views/idownloadable.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/idownloadable.py	Tue Nov 24 14:08:47 2015 +0100
@@ -201,6 +201,3 @@
 
     title = _('embedded html')
     _embedding_tag = tags.iframe
-
-
-
--- a/web/views/reledit.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/reledit.py	Tue Nov 24 14:08:47 2015 +0100
@@ -402,4 +402,3 @@
         assert args['reload'].startswith('http')
     view = req.vreg['views'].select('reledit', req, rset=rset, rtype=args['rtype'])
     return self._call_view(view, **args)
-
--- a/web/views/startup.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/startup.py	Tue Nov 24 14:08:47 2015 +0100
@@ -172,4 +172,3 @@
     @deprecated('[3.11] display_folders method is deprecated, backport it if needed')
     def display_folders(self):
         return 'Folder' in self._cw.vreg.schema and self._cw.execute('Any COUNT(X) WHERE X is Folder')[0][0]
-
--- a/web/views/tableview.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/tableview.py	Tue Nov 24 14:08:47 2015 +0100
@@ -1336,4 +1336,3 @@
                 colname = self._cw._(column)
             self.w(u'<th>%s</th>' % xml_escape(colname))
         self.w(u'</tr></thead>\n')
-
--- a/web/views/wdoc.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/wdoc.py	Tue Nov 24 14:08:47 2015 +0100
@@ -229,4 +229,3 @@
 
     def url(self):
         return self._cw.build_url('doc/about')
-
--- a/web/views/xbel.py	Tue Nov 24 14:05:50 2015 +0100
+++ b/web/views/xbel.py	Tue Nov 24 14:08:47 2015 +0100
@@ -67,4 +67,3 @@
 
     def url(self, entity):
         return entity.actual_url()
-