From: Christopher Allan Webber Date: Wed, 3 Dec 2014 19:38:18 +0000 (-0600) Subject: There's absolutely no reason for a Session().commit object mirrored onto Session... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7b808c1fad01b00c82ecf73ecaaef21b8d05db79;p=mediagoblin.git There's absolutely no reason for a Session().commit object mirrored onto Session() :) Thanks for catching, Elrond :) --- diff --git a/mediagoblin/db/open.py b/mediagoblin/db/open.py index bd629909..8f81c8d9 100644 --- a/mediagoblin/db/open.py +++ b/mediagoblin/db/open.py @@ -97,9 +97,6 @@ else: ##################################### # Functions to emulate DatabaseMaster ##################################### - def commit(): - session.commit() - def save(obj): session.add(obj) session.flush() @@ -116,7 +113,6 @@ else: session.remove() # now attach - session.commit = commit session.save = save session.check_session_clean = check_session_clean session.reset_after_request = reset_after_request