From 4baf45d3fa360cf9807f648b6529ad67852fba14 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 29 Aug 2020 15:40:12 +0200 Subject: Remove io.open() py2-ism MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- utils/gen-test-manifest.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'utils/gen-test-manifest.py') diff --git a/utils/gen-test-manifest.py b/utils/gen-test-manifest.py index 1dcd58a..b7c4530 100755 --- a/utils/gen-test-manifest.py +++ b/utils/gen-test-manifest.py @@ -1,7 +1,6 @@ #!/usr/bin/env python import glob -import io import os import os.path import sys @@ -47,7 +46,7 @@ def write_manifest_entries_for_dir(manifest_file, topdir, hashes): def gen_metamanifests(top_dir, hashes): - with io.open(os.path.join(top_dir, 'profiles/categories'), 'r') as f: + with open(os.path.join(top_dir, 'profiles/categories'), 'r') as f: categories = [x.strip() for x in f] alldirs = [] @@ -65,10 +64,10 @@ def gen_metamanifests(top_dir, hashes): for bm in alldirs: bmdir = os.path.join(top_dir, bm) if not list(glob.glob(os.path.join(bmdir, 'Manifest*'))): - with io.open(os.path.join(bmdir, 'Manifest'), 'w') as f: + with open(os.path.join(bmdir, 'Manifest'), 'w') as f: write_manifest_entries_for_dir(f, bmdir, hashes) - with io.open(os.path.join(top_dir, 'Manifest'), 'w') as f: + with open(os.path.join(top_dir, 'Manifest'), 'w') as f: write_manifest_entries_for_dir(f, top_dir, hashes) -- cgit v1.2.3