diff options
author | Simo Sorce <simo@redhat.com> | 2015-09-29 11:20:38 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-10-19 12:16:52 -0400 |
commit | 5fceed2d9be1001fc486d801e0a0f923d8dd3159 (patch) | |
tree | fc51762aa859135a1ebdaa9e96c95b25a847991c /custodia/httpd/server.py | |
parent | 18178ce292ae2f88528c7e6256c9956ec9ebf896 (diff) | |
download | custodia-5fceed2d9be1001fc486d801e0a0f923d8dd3159.tar.gz custodia-5fceed2d9be1001fc486d801e0a0f923d8dd3159.tar.xz custodia-5fceed2d9be1001fc486d801e0a0f923d8dd3159.zip |
Make tox pep8 happy
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'custodia/httpd/server.py')
-rw-r--r-- | custodia/httpd/server.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py index 949c00b..8bd71e2 100644 --- a/custodia/httpd/server.py +++ b/custodia/httpd/server.py @@ -1,5 +1,13 @@ # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file +import errno +import os +import shutil +import socket +import struct + +import six + try: # pylint: disable=import-error from BaseHTTPServer import BaseHTTPRequestHandler @@ -11,17 +19,12 @@ except ImportError: from http.server import BaseHTTPRequestHandler from socketserver import ForkingMixIn, UnixStreamServer from urllib.parse import urlparse, parse_qs, unquote -from custodia.log import stacktrace + from custodia.log import debug as log_debug -import os -import shutil -import six -import socket -import struct -import errno +from custodia.log import stacktrace SO_PEERCRED = 17 -MAX_REQUEST_SIZE = 10*1024*1024 # For now limit body to 10MiB +MAX_REQUEST_SIZE = 10 * 1024 * 1024 # For now limit body to 10MiB class HTTPError(Exception): |