1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 22:05:09 +01:00

Python 3 compatibility fix

This commit is contained in:
2017-12-13 11:47:36 +01:00
parent 9578ee624b
commit 6933357a61

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