Remove useless constant

This commit is contained in:
Unrud 2020-05-19 17:04:40 +02:00
parent 150dd0c4cd
commit 8740357eb2
2 changed files with 1 additions and 5 deletions

View File

@ -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))

View File

@ -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.")