summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2017-03-12 22:36:49 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2017-03-12 22:36:49 +0100
commit67049cf50145d179652bd678269e9f6251643e00 (patch)
tree758147e43a7b374f8e8f0c5ac8213371d053bf1c
parent3e1a751ee6f62369f1478427bfb89d8109e5b8ed (diff)
Cleaned up imports.
-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