Commits

Georg Brandl committed c34dcc1

More cleanup of imports.

Comments (0)

Files changed (2)

lodgeit/application.py

 """
 import os
 from datetime import datetime, timedelta
-from babel import Locale
 from werkzeug import SharedDataMiddleware, ClosingIterator
 from werkzeug.exceptions import HTTPException, NotFound
 from sqlalchemy import create_engine
 from lodgeit import i18n
-from lodgeit.local import application, ctx, _local_manager
+from lodgeit.local import ctx, _local_manager
 from lodgeit.urls import urlmap
 from lodgeit.utils import COOKIE_NAME, Request, jinja_environment
 from lodgeit.database import db
                                   self.bind_to_context)
 
     def bind_to_context(self):
-        ctx.application = application = self
+        ctx.application = self
 
     def __call__(self, environ, start_response):
         """Minimal WSGI application for request dispatching."""

lodgeit/database.py

 import sys
 from types import ModuleType
 import sqlalchemy
-from sqlalchemy import MetaData, create_engine
-from sqlalchemy import orm, sql
-from sqlalchemy.orm.session import Session
+from sqlalchemy import MetaData
+from sqlalchemy import orm
 from sqlalchemy.ext.declarative import declarative_base
 from lodgeit.local import application, _local_manager