mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Remove unused code
This commit is contained in:
parent
955f434d9d
commit
48747463ed
1 changed files with 0 additions and 19 deletions
|
|
@ -29,25 +29,6 @@ dav_logger = logging.getLogger(__name__)
|
||||||
CALDAV_DT_FORMAT = "%Y%m%dT%H%M%SZ"
|
CALDAV_DT_FORMAT = "%Y%m%dT%H%M%SZ"
|
||||||
|
|
||||||
|
|
||||||
def _generate_path_reserved_chars():
|
|
||||||
for x in "/?#[]!$&'()*+,;":
|
|
||||||
x = urlparse.quote(x, "")
|
|
||||||
yield x.upper()
|
|
||||||
yield x.lower()
|
|
||||||
|
|
||||||
|
|
||||||
_path_reserved_chars = frozenset(_generate_path_reserved_chars())
|
|
||||||
del _generate_path_reserved_chars
|
|
||||||
|
|
||||||
|
|
||||||
def _contains_quoted_reserved_chars(x):
|
|
||||||
for y in _path_reserved_chars:
|
|
||||||
if y in x:
|
|
||||||
dav_logger.debug(f"Unsafe character: {y!r}")
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
async def _assert_multistatus_success(r):
|
async def _assert_multistatus_success(r):
|
||||||
# Xandikos returns a multistatus on PUT.
|
# Xandikos returns a multistatus on PUT.
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue