mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:14:54 +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 sys
|
||||
import tempfile
|
||||
from urllib.request import urlretrieve
|
||||
|
||||
try:
|
||||
from urllib.request import urlretrieve
|
||||
except ImportError:
|
||||
from urllib import urlretrieve
|
||||
|
||||
def find_repo_path():
|
||||
return os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
|
||||
Reference in New Issue
Block a user