Support Python 2.7 in tests
This commit is contained in:
parent
dc7d908462
commit
fe3296f203
3 changed files with 9 additions and 7 deletions
|
|
@ -2,15 +2,14 @@
|
|||
|
||||
import functools
|
||||
import logging
|
||||
import lxml.etree as etree
|
||||
import os
|
||||
import requests
|
||||
import shutil
|
||||
import threading
|
||||
from io import BytesIO
|
||||
from re import sub
|
||||
|
||||
import lxml.etree as etree
|
||||
import requests
|
||||
|
||||
from webdav3.connection import *
|
||||
from webdav3.exceptions import *
|
||||
from webdav3.urn import Urn
|
||||
|
|
@ -977,8 +976,6 @@ class WebDavXmlUtils:
|
|||
"""
|
||||
prefix = urlparse(hostname).path
|
||||
try:
|
||||
if isinstance(content, str):
|
||||
content = content.encode('utf-8')
|
||||
tree = etree.fromstring(content)
|
||||
responses = tree.findall("{DAV:}response")
|
||||
n_path = Urn.normalize_path(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue