mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 20:55:10 +01:00
Python 3 compatibility fix
This commit is contained in:
@@ -6,7 +6,12 @@ import hashlib
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
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 bs4
|
||||||
import requests
|
import requests
|
||||||
|
|||||||
Reference in New Issue
Block a user