File: python3.patch

package info (click to toggle)
python-easywebdav 1.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 148 kB
  • sloc: python: 251; sh: 43; makefile: 13
file content (23 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From ef5b89ad558e006654cfa51f2394088b4f113267 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?=
 <zmoelnig@umlautQ.umlaeute.mur.at>
Date: Tue, 23 Feb 2016 14:49:32 +0100
Subject: Provide fallback for "basestring" under python3

Patch-Name: python3.patch
---
 easywebdav/client.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/easywebdav/client.py b/easywebdav/client.py
index 4003198..a8fb219 100644
--- a/easywebdav/client.py
+++ b/easywebdav/client.py
@@ -12,6 +12,7 @@ if py_majversion == '2':
 else:
     from http.client import responses as HTTP_CODES
     from urllib.parse import urlparse
+    basestring = str
 
 DOWNLOAD_CHUNK_SIZE_BYTES = 1 * 1024 * 1024