[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] daklib/dbconn.py: Typo, quotes



Avoid confusing emacs' syntax highlighter by switching the types of
quotes for a docstring and fix a typo

Signed-off-by: Tollef Fog Heen <tfheen@varnish-software.com>
---
 daklib/dbconn.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/daklib/dbconn.py b/daklib/dbconn.py
index 31caa90..b5d1ea8 100644
--- a/daklib/dbconn.py
+++ b/daklib/dbconn.py
@@ -311,7 +311,7 @@ class ORMObject(object):
         return object_session(self)
 
     def clone(self, session = None):
-        '''
+        """
         Clones the current object in a new session and returns the new clone. A
         fresh session is created if the optional session parameter is not
         provided. The function will fail if a session is provided and has
@@ -324,8 +324,8 @@ class ORMObject(object):
         WARNING: Only persistent (committed) objects can be cloned. Changes
         made to the original object that are not committed yet will get lost.
         The session of the new object will always be rolled back to avoid
-        ressource leaks.
-        '''
+        resource leaks.
+        """
 
         if self.session() is None:
             raise RuntimeError( \
-- 
1.7.10.4



Reply to: