From 2ad44c78ebdc7a6720e8584dc3e66388caf62fee Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Wed, 9 Jan 2013 14:03:24 +0100 Subject: [PATCH] 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 --- daklib/dbconn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 31caa902..b5d1ea87 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( \ -- 2.39.5