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:
@@ -6,6 +6,11 @@ import hashlib
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
try:
|
||||
# Python 3
|
||||
from urllib.parse import urljoin, urlparse, urlunparse
|
||||
except ImportError:
|
||||
# Python 2
|
||||
from urlparse import urljoin, urlparse, urlunparse
|
||||
|
||||
import bs4
|
||||
|
||||
Reference in New Issue
Block a user