]> git.donarmstrong.com Git - dak.git/commitdiff
daklib/dbconn.py: Typo, quotes
authorTollef Fog Heen <tfheen@varnish-software.com>
Wed, 9 Jan 2013 13:03:24 +0000 (14:03 +0100)
committerTollef Fog Heen <tfheen@err.no>
Tue, 10 Sep 2013 11:18:11 +0000 (13:18 +0200)
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

index 31caa902dcd8f50ca06cde5f31c9ab16252e768f..b5d1ea87b5ec7276f2e080052ad2027d45a7d896 100644 (file)
@@ -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( \