mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
Remove import fallback of urllib2 in tests/modification-check. (#8677)
This commit is contained in:
@@ -7,11 +7,8 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
from urllib.request import urlretrieve
|
||||||
|
|
||||||
try:
|
|
||||||
from urllib.request import urlretrieve
|
|
||||||
except ImportError:
|
|
||||||
from urllib import urlretrieve
|
|
||||||
|
|
||||||
def find_repo_path():
|
def find_repo_path():
|
||||||
return os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
return os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||||
|
|||||||
Reference in New Issue
Block a user