From 0bcd6dd620fa9a05fc87a36e8314b9ad2f6080d0 Mon Sep 17 00:00:00 2001 From: kgriffs Date: Tue, 2 Apr 2013 19:27:45 -0400 Subject: [PATCH] refactor(Request): Don't import helper functions into the locals namespace --- falcon/request.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/falcon/request.py b/falcon/request.py index 8d83a01..b94a40c 100644 --- a/falcon/request.py +++ b/falcon/request.py @@ -20,7 +20,7 @@ from datetime import datetime import six -from falcon.request_helpers import * +from falcon import request_helpers as helpers from falcon.exceptions import * DEFAULT_ERROR_LOG_FORMAT = ('{0:%Y-%m-%d %H:%M:%S} [FALCON] [ERROR]' @@ -86,8 +86,8 @@ class Request(object): else: self.query_string = query_string = '' - self._params = parse_query_string(query_string) - self._headers = parse_headers(env) + self._params = helpers.parse_query_string(query_string) + self._headers = helpers.parse_headers(env) def log_error(self, message): """Log an error to wsgi.error