Remove useless constant
This commit is contained in:
parent
150dd0c4cd
commit
8740357eb2
@ -349,8 +349,7 @@ class Application(
|
||||
xml_declaration=True)
|
||||
return f.getvalue()
|
||||
|
||||
def _webdav_error_response(self, human_tag,
|
||||
status=httputils.WEBDAV_PRECONDITION_FAILED[0]):
|
||||
def _webdav_error_response(self, human_tag, status=client.CONFLICT):
|
||||
"""Generate XML error response."""
|
||||
headers = {"Content-Type": "text/xml; charset=%s" % self._encoding}
|
||||
content = self._write_xml_content(xmlutils.webdav_error(human_tag))
|
||||
|
@ -38,9 +38,6 @@ NOT_FOUND = (
|
||||
CONFLICT = (
|
||||
client.CONFLICT, (("Content-Type", "text/plain"),),
|
||||
"Conflict in the request.")
|
||||
WEBDAV_PRECONDITION_FAILED = (
|
||||
client.CONFLICT, (("Content-Type", "text/plain"),),
|
||||
"WebDAV precondition failed.")
|
||||
METHOD_NOT_ALLOWED = (
|
||||
client.METHOD_NOT_ALLOWED, (("Content-Type", "text/plain"),),
|
||||
"The method is not allowed on the requested resource.")
|
||||
|
Loading…
Reference in New Issue
Block a user