minor cleanups/typos
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 10 Sep 2012 16:50:28 +0200
changeset 8543 b7c9443d8625
parent 8542 7e264ce34cd4
child 8544 3d049071957e
minor cleanups/typos
devtools/__init__.py
devtools/testlib.py
hooks/email.py
--- a/devtools/__init__.py	Mon Sep 10 17:36:22 2012 +0200
+++ b/devtools/__init__.py	Mon Sep 10 16:50:28 2012 +0200
@@ -355,7 +355,7 @@
     def _restore_database(self, backup_coordinates, config):
         """Actual restore of the current database.
 
-        Use the value tostored in db_cache as input """
+        Use the value stored in db_cache as input """
         raise NotImplementedError()
 
     def get_repo(self, startup=False):
@@ -466,7 +466,6 @@
         ``pre_setup_func`` to setup the database.
 
         This function backup any database it build"""
-
         if self.has_cache(test_db_id):
             return #test_db_id, 'already in cache'
         if test_db_id is DEFAULT_EMPTY_DB_ID:
@@ -723,7 +722,7 @@
         dbfile = self.absolute_dbfile()
         self._cleanup_database(dbfile)
         shutil.copy(backup_coordinates, dbfile)
-        repo = self.get_repo()
+        self.get_repo()
 
     def init_test_database(self):
         """initialize a fresh sqlite databse used for testing purpose"""
--- a/devtools/testlib.py	Mon Sep 10 17:36:22 2012 +0200
+++ b/devtools/testlib.py	Mon Sep 10 16:50:28 2012 +0200
@@ -445,7 +445,7 @@
         finally:
             self.session.set_cnxset() # ensure cnxset still set after commit
 
-    # # server side db api #######################################################
+    # server side db api #######################################################
 
     def sexecute(self, rql, args=None, eid_key=None):
         if eid_key is not None:
--- a/hooks/email.py	Mon Sep 10 17:36:22 2012 +0200
+++ b/hooks/email.py	Mon Sep 10 16:50:28 2012 +0200
@@ -15,9 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""hooks to ensure use_email / primary_email relations consistency
+"""hooks to ensure use_email / primary_email relations consistency"""
 
-"""
 __docformat__ = "restructuredtext en"
 
 from cubicweb.server import hook