From b6ff12339a9671bcbf7bc5a4c56b320cb2513717 Mon Sep 17 00:00:00 2001 From: Tsvi Mostovicz Date: Sun, 23 Nov 2014 16:38:42 +0200 Subject: [PATCH] In Python 3, basestring is not defined Used the solution found here: https://github.com/oxplot/fysom/issues/1 --- easywebdav/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easywebdav/client.py b/easywebdav/client.py index 4003198..287b398 100644 --- a/easywebdav/client.py +++ b/easywebdav/client.py @@ -9,9 +9,11 @@ if py_majversion == '2': from httplib import responses as HTTP_CODES from urlparse import urlparse + basestring = basestring else: from http.client import responses as HTTP_CODES from urllib.parse import urlparse + basestring = (str,bytes) DOWNLOAD_CHUNK_SIZE_BYTES = 1 * 1024 * 1024