summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:47:31 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:47:31 +0100
commitd39d9311f11036077ecae1be6e2f0024c23949e3 (patch)
tree5c41a2cb04b653ea5e2ea34da8f06083063f0df4 /paste
parent9581b71fc493ddc75d4b461661df084e3006afc6 (diff)
downloadpaste-d39d9311f11036077ecae1be6e2f0024c23949e3.tar.gz
Python 3: Use absolute import instead of relative import
Diffstat (limited to 'paste')
-rw-r--r--paste/evalexception/middleware.py2
-rw-r--r--paste/httpheaders.py2
-rw-r--r--paste/urlparser.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py
index d577003..cee9147 100644
--- a/paste/evalexception/middleware.py
+++ b/paste/evalexception/middleware.py
@@ -43,7 +43,7 @@ from paste import httpexceptions
from paste import registry
from paste import request
from paste import response
-import evalcontext
+from paste.evalexception import evalcontext
limit = 200
diff --git a/paste/httpheaders.py b/paste/httpheaders.py
index cd21069..2a11f6d 100644
--- a/paste/httpheaders.py
+++ b/paste/httpheaders.py
@@ -137,7 +137,6 @@ dashes to give CamelCase style names.
import mimetypes
import re
from time import time as now
-from httpexceptions import HTTPBadRequest
try:
# Python 3
from email.utils import formatdate, parsedate_tz, mktime_tz
@@ -147,6 +146,7 @@ except ImportError:
from rfc822 import formatdate, parsedate_tz, mktime_tz
from urllib2 import AbstractDigestAuthHandler, parse_keqv_list, parse_http_list
+from .httpexceptions import HTTPBadRequest
__all__ = ['get_header', 'list_headers', 'normalize_headers',
'HTTPHeader', 'EnvironVariable' ]
diff --git a/paste/urlparser.py b/paste/urlparser.py
index e12e63f..3554a98 100644
--- a/paste/urlparser.py
+++ b/paste/urlparser.py
@@ -16,7 +16,7 @@ from paste import request
from paste import fileapp
from paste.util import import_string
from paste import httpexceptions
-from httpheaders import ETAG
+from .httpheaders import ETAG
from paste.util import converters
class NoDefault(object):