summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db.py3
-rw-r--r--pastepy.py12
2 files changed, 13 insertions, 2 deletions
diff --git a/db.py b/db.py
index a2666a0..003d4c4 100644
--- a/db.py
+++ b/db.py
@@ -1,8 +1,9 @@
+import settings
+
from sqlalchemy import create_engine, Column, Integer, String, DateTime, Text, Index, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relation, backref
from sqlalchemy.orm.exc import NoResultFound
-import settings
engine = create_engine(settings.db_path)
diff --git a/pastepy.py b/pastepy.py
index 6af07ef..25d8746 100644
--- a/pastepy.py
+++ b/pastepy.py
@@ -1,4 +1,14 @@
-import templates, pygments, cgi, db, datetime, settings, os, mimetypes, Cookie, random
+import cgi
+import Cookie
+import datetime
+import db
+import mimetypes
+import os
+import random
+
+import settings
+import templates
+
from pygments import highlight
from pygments.lexers import get_all_lexers, get_lexer_by_name
from pygments.formatters import HtmlFormatter