Move the scoped_session, sessionmaker imports
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 30 Nov 2014 20:04:20 +0000 (14:04 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 3 Dec 2014 21:40:57 +0000 (15:40 -0600)
mediagoblin/db/base.py

index e594bd95d17583525fbdaf87cdf567cd79e9be0f..c3c3476336ff1857b39093d0358bd3fa3fb25748 100644 (file)
 
 
 from sqlalchemy.ext.declarative import declarative_base
-from sqlalchemy.orm import scoped_session, sessionmaker, object_session
 from sqlalchemy import inspect
 
 from mediagoblin.tools.transition import DISABLE_GLOBALS
 
 if not DISABLE_GLOBALS:
+    from sqlalchemy.orm import scoped_session, sessionmaker
     Session = scoped_session(sessionmaker())