1
0
mirror of https://codeberg.org/diginaut/digimarks.git synced 2026-05-06 18:04:10 +02:00

Python 3 compatibility fix

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