Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
ef9e1e3a
Commit
ef9e1e3a
authored
Oct 25, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make pylint happier.
parent
11eba1c0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
+20
-4
.pylintrc
.pylintrc
+9
-3
caucase/http_wsgibase.py
caucase/http_wsgibase.py
+3
-0
caucase/http_wsgirequesthandler.py
caucase/http_wsgirequesthandler.py
+4
-0
caucase/wsgi.py
caucase/wsgi.py
+4
-1
No files found.
.pylintrc
View file @
ef9e1e3a
[MESSAGES CONTROL]
disable=C0103,C0330
# C0103 Disable "Invalid name "%s" (should match %s)"
# C0330 Disable "bad-continuation"
disable=C0103,C0330,R0903,R0913,R0914,R0912,R0915,R0902
# C0103 "Invalid name "%s" (should match %s)"
# C0330 bad-continuation
# R0903 too-few-public-methods
# R0913 too-many-arguments
# R0914 too-many-locals
# R0912 too-many-branches
# R0915 too-many-statements
# R0902 too-many-instance-attributes
[FORMAT]
indent-string=" "
caucase/http_wsgibase.py
View file @
ef9e1e3a
...
...
@@ -45,6 +45,9 @@ class ChunkedFile(ProxyFile):
self
.
_recv_buf
=
''
def
read
(
self
,
length
=
None
):
"""
Read chunked data.
"""
result
=
self
.
_recv_buf
if
not
self
.
_at_eof
:
readline
=
self
.
readline
...
...
caucase/http_wsgirequesthandler.py
View file @
ef9e1e3a
...
...
@@ -49,6 +49,10 @@
# 8. By copying, installing or otherwise using Python, Licensee
# agrees to be bound by the terms and conditions of this License
# Agreement.
"""
Override WSGIRequestHandler.handle to change server handler class.
In its own file as python licence applies, unlike the rest of caucase.
"""
from
__future__
import
absolute_import
from
wsgiref.simple_server
import
WSGIRequestHandler
as
WSGIRequestHandler_org
from
.http_wsgibase
import
CleanServerHandler
...
...
caucase/wsgi.py
View file @
ef9e1e3a
...
...
@@ -39,6 +39,9 @@ class ApplicationError(Exception):
@
property
def
response_headers
(
self
):
"""
Get a copy of error's response headers.
"""
return
self
.
_response_headers
[:]
class
BadRequest
(
ApplicationError
):
...
...
@@ -58,7 +61,7 @@ class SSLUnauthorized(Unauthorized):
Authentication failed because of SSL credentials (missing or incorrect)
"""
_response_headers
=
[
#
XXX
: non standard scheme, suggested in
#
Note
: non standard scheme, suggested in
# https://www.ietf.org/mail-archive/web/httpbisa/current/msg03764.html
(
'WWW-Authenticate'
,
'transport'
),
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment