Remove usage of six
Remove six-library Replace the following items with Python 3 style code.
- six.StringIO
Change-Id: Ia8a28940edc9ca1b26ca0ef5112a44fe5fc6258d
diff --git a/tools/check_logs.py b/tools/check_logs.py
index 4b059f2..cc74b17 100755
--- a/tools/check_logs.py
+++ b/tools/check_logs.py
@@ -17,6 +17,7 @@
import argparse
import gzip
+import io
import os
import re
import sys
@@ -69,7 +70,7 @@
req = urlreq.Request(url)
req.add_header('Accept-Encoding', 'gzip')
page = urlreq.urlopen(req)
- buf = six.StringIO(page.read())
+ buf = io.StringIO(page.read())
f = gzip.GzipFile(fileobj=buf)
if scan_content(f.read().splitlines(), regexp, allow_list):
logs_with_errors.append(name)