diff --git a/testing/web-platform/tests/tools/manifest/download.py b/testing/web-platform/tests/tools/manifest/download.py index 88d478fe0ef2c..0cfbf4934273c 100644 --- a/testing/web-platform/tests/tools/manifest/download.py +++ b/testing/web-platform/tests/tools/manifest/download.py @@ -158,7 +158,7 @@ def download_manifest( fileobj = io.BytesIO(resp.read()) try: with gzip.GzipFile(fileobj=fileobj) as gzf: - data = read_gzf(gzf) # type: ignore + data = gzf.read() decompressed = data except IOError: logger.warning("Failed to decompress downloaded file") @@ -180,12 +180,6 @@ def download_manifest( return True -def read_gzf(gzf): # type: ignore - # This is working around a mypy problem in Python 2: - # "Call to untyped function "read" in typed context" - return gzf.read() - - def create_parser(): # type: () -> argparse.ArgumentParser parser = argparse.ArgumentParser()