From 7b808c1fad01b00c82ecf73ecaaef21b8d05db79 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 3 Dec 2014 13:38:18 -0600 Subject: [PATCH] There's absolutely no reason for a Session().commit object mirrored onto Session() :) Thanks for catching, Elrond :) --- mediagoblin/db/open.py | 4 ---- 1 file changed, 4 deletions(-) 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 -- 2.25.1