Spelling fixes in comments and docstrings
authorRémi Cardona <remi.cardona@logilab.fr>
Mon, 09 Mar 2015 10:49:03 +0100
changeset 10510 51321946da37
parent 10509 e8ac062d4b20
child 10511 84cb3299ec40
Spelling fixes in comments and docstrings
devtools/__init__.py
server/repository.py
utils.py
web/component.py
web/views/basetemplates.py
--- a/devtools/__init__.py	Wed Apr 08 11:29:24 2015 +0200
+++ b/devtools/__init__.py	Mon Mar 09 10:49:03 2015 +0100
@@ -783,7 +783,7 @@
         dbfile = self.absolute_dbfile()
         backup_file = self.absolute_backup_file(db_id, 'sqlite')
         shutil.copy(dbfile, backup_file)
-        # Usefull to debug WHO write a database
+        # Useful to debug WHO writes a database
         # backup_stack = self.absolute_backup_file(db_id, '.stack')
         #with open(backup_stack, 'w') as backup_stack_file:
         #    import traceback
--- a/server/repository.py	Wed Apr 08 11:29:24 2015 +0200
+++ b/server/repository.py	Mon Mar 09 10:49:03 2015 +0100
@@ -1078,7 +1078,7 @@
                     continue
                 # take care to relation of cardinality '?1', as all eids will
                 # be inserted later, we've remove duplicated eids since they
-                # won't be catched by `del_existing_rel_if_needed`
+                # won't be caught by `del_existing_rel_if_needed`
                 rdef = cnx.rtype_eids_rdef(rtype, subjeid, objeid)
                 card = rdef.cardinality
                 if card[0] in '?1':
--- a/utils.py	Wed Apr 08 11:29:24 2015 +0200
+++ b/utils.py	Mon Mar 09 10:49:03 2015 +0100
@@ -646,7 +646,7 @@
 
     Occasional elements can be buggy requests (server-side) or
     end-user (web-ui provided) requests. These have to be cleaned up
-    when they fill the cache, without evicting the usefull, frequently
+    when they fill the cache, without evicting the useful, frequently
     used entries.
     """
     # quite arbitrary, but we want to never
--- a/web/component.py	Wed Apr 08 11:29:24 2015 +0200
+++ b/web/component.py	Mon Mar 09 10:49:03 2015 +0100
@@ -353,7 +353,7 @@
         has some content to display. If not, you can still raise
         :exc:`EmptyComponent` to inform it should be skipped.
 
-        Also, :exc:`Unauthorized` will be catched, logged, then the component
+        Also, :exc:`Unauthorized` will be caught, logged, then the component
         will be skipped.
         """
         self.items = []
--- a/web/views/basetemplates.py	Wed Apr 08 11:29:24 2015 +0200
+++ b/web/views/basetemplates.py	Mon Mar 09 10:49:03 2015 +0100
@@ -490,7 +490,7 @@
 
 
 class LogFormView(View):
-    # XXX an awfull lot of hardcoded assumptions there
+    # XXX an awful lot of hardcoded assumptions there
     #     makes it unobvious to reuse/specialize
     __regid__ = 'logform'
     __select__ = match_kwargs('id', 'klass')