From 8740357eb25749a90036b2a04f0f07f1466ebd7e Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 19 May 2020 17:04:40 +0200 Subject: [PATCH] Remove useless constant --- radicale/app/__init__.py | 3 +-- radicale/httputils.py | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/radicale/app/__init__.py b/radicale/app/__init__.py index 5b083e9..a827b4f 100644 --- a/radicale/app/__init__.py +++ b/radicale/app/__init__.py @@ -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)) diff --git a/radicale/httputils.py b/radicale/httputils.py index 4142b30..eb4c75c 100644 --- a/radicale/httputils.py +++ b/radicale/httputils.py @@ -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.")