tests: drop py2 support from `f` utility
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 03 Jan 2023 23:49:05 -0500
changeset 49873 e9d06ed64161
parent 49872 40060267df22
child 49874 cd3b8fd1d3eb
tests: drop py2 support from `f` utility
tests/f
--- a/tests/f	Tue Jan 03 23:47:29 2023 -0500
+++ b/tests/f	Tue Jan 03 23:49:05 2023 -0500
@@ -32,17 +32,10 @@
 import re
 import sys
 
-# Python 3 adapters
-ispy3 = sys.version_info[0] >= 3
-if ispy3:
 
-    def iterbytes(s):
-        for i in range(len(s)):
-            yield s[i : i + 1]
-
-
-else:
-    iterbytes = iter
+def iterbytes(s):
+    for i in range(len(s)):
+        yield s[i : i + 1]
 
 
 def visit(opts, filenames, outfile):