chore: remove py2 compatibility code (#40375)

This commit is contained in:
David Sanders 2023-11-01 07:20:32 -07:00 committed by GitHub
parent bc1ba1fe9d
commit 425efb5e47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 15 additions and 54 deletions

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import print_function
import contextlib
import errno
import json
@ -8,11 +7,7 @@ import os
import shutil
import subprocess
import sys
# Python 3 / 2 compat import
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
from urllib.request import urlopen
import zipfile
# from lib.config import is_verbose_mode