# HG changeset patch # User Martin Bornhold # Date 2016-09-26 14:25:11 # Node ID 775a48ffa766ebd9bf347986a7160961557e1095 # Parent 8728085221e18a7d0fa628807dbee171f2b31115 imports: Remove unused imports. diff --git a/rhodecode/controllers/admin/gists.py b/rhodecode/controllers/admin/gists.py --- a/rhodecode/controllers/admin/gists.py +++ b/rhodecode/controllers/admin/gists.py @@ -28,10 +28,9 @@ import logging import formencode import peppercorn -from formencode import htmlfill from pylons import request, response, tmpl_context as c, url -from pylons.controllers.util import abort, redirect +from pylons.controllers.util import redirect from pylons.i18n.translation import _ from webob.exc import HTTPNotFound, HTTPForbidden from sqlalchemy.sql.expression import or_ @@ -45,7 +44,7 @@ from rhodecode.lib import helpers as h from rhodecode.lib.base import BaseController, render from rhodecode.lib.auth import LoginRequired, NotAnonymous from rhodecode.lib.utils import jsonify -from rhodecode.lib.utils2 import safe_str, safe_int, time_to_datetime +from rhodecode.lib.utils2 import time_to_datetime from rhodecode.lib.ext_json import json from rhodecode.lib.vcs.exceptions import VCSError, NodeNotChangedError from rhodecode.model import validation_schema diff --git a/rhodecode/model/validation_schema/schemas/gist_schema.py b/rhodecode/model/validation_schema/schemas/gist_schema.py --- a/rhodecode/model/validation_schema/schemas/gist_schema.py +++ b/rhodecode/model/validation_schema/schemas/gist_schema.py @@ -23,7 +23,7 @@ import os import colander from rhodecode.translation import _ -from rhodecode.model.validation_schema import validators, preparers +from rhodecode.model.validation_schema import preparers def nodes_to_sequence(nodes, colander_node=None): @@ -181,5 +181,3 @@ class GistSchema(colander.MappingSchema) validator=colander.OneOf([Gist.GIST_PRIVATE, Gist.GIST_PUBLIC])) nodes = Nodes() - -