From: Tollef Fog Heen Date: Wed, 9 Jan 2013 13:03:24 +0000 (+0100) Subject: daklib/dbconn.py: Typo, quotes X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2ad44c78ebdc7a6720e8584dc3e66388caf62fee;hp=7ed15b809fd22f3325aed4e4a1ecac4387417437;p=dak.git 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 --- 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( \