From 3559f127031598b0dcc2a243454d2c15309a109b Mon Sep 17 00:00:00 2001 From: cce Date: Thu, 21 Sep 2006 05:46:57 +0000 Subject: Paste should not depend upon other paste modules, such as Deploy. This patch moves 'converters' into paste.util since it was being used within paste proper. I'll leave it to those who know Deploy to update that. - copied converters.py from paste.deploy to paste.util - updated files that use paste.deploy.converters --- paste/urlparser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'paste/urlparser.py') diff --git a/paste/urlparser.py b/paste/urlparser.py index 2ca824c..367fa02 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -15,6 +15,7 @@ import fileapp from paste.util import import_string import httpexceptions from httpheaders import ETAG +from paste.util import converters class NoDefault: pass @@ -107,7 +108,6 @@ class URLParser(object): self.base_python_name = base_python_name # This logic here should be deprecated since it is in # make_url_parser - from paste.deploy import converters if index_names is NoDefault: index_names = global_conf.get( 'index_names', ('index', 'Index', 'main', 'Main')) @@ -612,7 +612,6 @@ def make_url_parser(global_conf, directory, base_python_name, ``'.pyc'``) and ``ignore_extensions`` are viewable but only if an explicit extension is given. """ - from paste.deploy import converters if index_names is None: index_names = global_conf.get( 'index_names', ('index', 'Index', 'main', 'Main')) -- cgit v1.2.1