From 67049cf50145d179652bd678269e9f6251643e00 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 12 Mar 2017 22:36:49 +0100 Subject: Cleaned up imports. --- db.py | 3 ++- pastepy.py | 12 +++++++++++- 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 -- cgit v1.2.3