diff --git a/kallithea/controllers/changeset.py b/kallithea/controllers/changeset.py --- a/kallithea/controllers/changeset.py +++ b/kallithea/controllers/changeset.py @@ -33,7 +33,7 @@ from collections import OrderedDict, def from tg import request, response from tg import tmpl_context as c from tg.i18n import ugettext as _ -from webob.exc import HTTPBadRequest, HTTPForbidden, HTTPFound, HTTPNotFound +from webob.exc import HTTPBadRequest, HTTPForbidden, HTTPNotFound import kallithea.lib.helpers as h from kallithea.lib import diffs diff --git a/kallithea/lib/vcs/utils/imports.py b/kallithea/lib/vcs/utils/imports.py --- a/kallithea/lib/vcs/utils/imports.py +++ b/kallithea/lib/vcs/utils/imports.py @@ -1,6 +1,3 @@ -from kallithea.lib.vcs.exceptions import VCSError - - def import_class(class_path): """ Returns class from the given path. @@ -8,10 +5,7 @@ def import_class(class_path): For example, in order to get class located at ``vcs.backends.hg.MercurialRepository``: - try: - hgrepo = import_class('vcs.backends.hg.MercurialRepository') - except VCSError: - # handle error + hgrepo = import_class('vcs.backends.hg.MercurialRepository') """ splitted = class_path.split('.') mod_path = '.'.join(splitted[:-1]) diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -112,8 +112,8 @@ try: long_description = open(README_FILE).read() except IOError as err: sys.stderr.write( - "[WARNING] Cannot find file specified as long_description (%s)\n" - % README_FILE + "[WARNING] Cannot find file specified as long_description (%s): %s\n" + % (README_FILE, err) ) long_description = description