style: Remove some wildcard imports
This patch removes an unused wildcard import in http_error. It also removes wildcard imports in request and responders, replacing them with explicit ones.
This commit is contained in:
@@ -24,8 +24,6 @@ if sys.version_info < (2, 7): # pragma: no cover
|
||||
else:
|
||||
from collections import OrderedDict
|
||||
|
||||
from falcon.status_codes import *
|
||||
|
||||
|
||||
class HTTPError(Exception):
|
||||
"""Represents a generic HTTP error.
|
||||
|
||||
@@ -20,7 +20,7 @@ from datetime import datetime
|
||||
|
||||
import six
|
||||
|
||||
from falcon.exceptions import *
|
||||
from falcon.exceptions import HTTPBadRequest
|
||||
from falcon import util
|
||||
from falcon import request_helpers as helpers
|
||||
|
||||
|
||||
@@ -16,7 +16,10 @@ limitations under the License.
|
||||
|
||||
"""
|
||||
|
||||
from falcon.status_codes import *
|
||||
from falcon.status_codes import HTTP_400
|
||||
from falcon.status_codes import HTTP_404
|
||||
from falcon.status_codes import HTTP_405
|
||||
from falcon.status_codes import HTTP_500
|
||||
|
||||
|
||||
def path_not_found(req, resp, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user