Skip to content

Commit efbadf3

Browse files
committed
remove more six compatibility layer
1 parent 4d46948 commit efbadf3

File tree

9 files changed

+15
-16
lines changed

9 files changed

+15
-16
lines changed

pywebdav/lib/WebDAVServer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
55
"""
66
from . import AuthServer
7-
from six.moves import urllib
87
import logging
8+
import urllib.parse
99

1010
from .propfind import PROPFIND
1111
from .report import REPORT

pywebdav/lib/davcmd.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
99
"""
1010

11-
from six.moves import urllib
11+
import urllib.parser
1212

1313
from .utils import create_treelist, is_prefix
14-
from .errors import *
15-
from six.moves import range
14+
from .errors import DAV_Error, DAV_NotFound
1615
import os
1716

1817
def deltree(dc,uri,exclude={}):

pywebdav/lib/davcopy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
domimpl = xml.dom.minidom.getDOMImplementation()
33

44
import string
5-
from six.moves import urllib
5+
import urllib.parse
66
from io import StringIO
77

88
from . import utils
99
from .constants import COLLECTION, OBJECT, DAV_PROPS, RT_ALLPROP, RT_PROPNAME, RT_PROP
10-
from .errors import *
10+
from .errors import DAV_Error
1111
from .utils import create_treelist, quote_uri, gen_estring
1212

1313
class COPY:

pywebdav/lib/davmove.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from six.moves import urllib
1+
import urllib.parse
22

33
from . import utils
44
from .constants import COLLECTION, OBJECT, DAV_PROPS
55
from .constants import RT_ALLPROP, RT_PROPNAME, RT_PROP
6-
from .errors import *
6+
from .errors import DAV_Error
77
from .utils import create_treelist, quote_uri, gen_estring, make_xmlresponse, is_prefix
88
from .davcmd import moveone, movetree
99

pywebdav/lib/iface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from xml.dom import minidom
1111
from .locks import LockManager
12-
from .errors import *
12+
from .errors import DAV_Forbidden, DAV_NotFound
1313

1414
import time
1515

pywebdav/lib/locks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import time
2-
from six.moves import urllib
2+
import urllib.parse
33
import uuid
44

55
import logging
@@ -10,7 +10,6 @@
1010
from xml.dom import minidom
1111

1212
from .utils import rfc1123_date, IfParser, tokenFinder
13-
from .errors import *
1413

1514
tokens_to_lock = {}
1615
uris_to_token = {}

pywebdav/lib/propfind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
domimpl = xml.dom.minidom.getDOMImplementation()
33

44
import logging
5-
from six.moves import urllib
5+
import urllib.parse
66

77
from . import utils
88
from .constants import RT_ALLPROP, RT_PROPNAME, RT_PROP

pywebdav/lib/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import os
44

55
from xml.dom import minidom
6-
from six.moves import urllib
6+
import urllib.parse
7+
78
from .constants import RT_ALLPROP, RT_PROPNAME, RT_PROP
89
from six.moves.BaseHTTPServer import BaseHTTPRequestHandler
910

pywebdav/server/fshandler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import types
55
import shutil
66
from io import StringIO
7-
from six.moves import urllib
7+
import urllib.parse
88
from pywebdav.lib.constants import COLLECTION, OBJECT
9-
from pywebdav.lib.errors import *
10-
from pywebdav.lib.iface import *
9+
from pywebdav.lib.errors import DAV_Error, DAV_Forbidden, DAV_NotFound
10+
from pywebdav.lib.iface import DAV_Requested_Range_Not_Satisfiable, DAV_Secret
1111
from pywebdav.lib.davcmd import copyone, copytree, moveone, movetree, delone, deltree
1212
from html import escape
1313

0 commit comments

Comments
 (0)