1
0
mirror of https://codeberg.org/diginaut/digimarks.git synced 2026-05-06 19:14:09 +02:00

Python 3 compatibility fix

This commit is contained in:
2017-12-13 11:47:36 +01:00
parent 9578ee624b
commit 6933357a61
+5
View File
@@ -6,6 +6,11 @@ import hashlib
import os import os
import shutil import shutil
import sys import sys
try:
# Python 3
from urllib.parse import urljoin, urlparse, urlunparse
except ImportError:
# Python 2
from urlparse import urljoin, urlparse, urlunparse from urlparse import urljoin, urlparse, urlunparse
import bs4 import bs4