diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-12 22:36:49 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-12 22:36:49 +0100 |
commit | 67049cf50145d179652bd678269e9f6251643e00 (patch) | |
tree | 758147e43a7b374f8e8f0c5ac8213371d053bf1c | |
parent | 3e1a751ee6f62369f1478427bfb89d8109e5b8ed (diff) |
Cleaned up imports.
-rw-r--r-- | db.py | 3 | ||||
-rw-r--r-- | pastepy.py | 12 |
2 files changed, 13 insertions, 2 deletions
@@ -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) @@ -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 |