Imported Upstream version 2.6.7
[platform/upstream/harfbuzz.git] / test / subset / subset_test_suite.py
index 47664d0..b7fd105 100644 (file)
@@ -1,6 +1,5 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
-import io
 import os
 
 # A single test in a subset test suite. Identifies a font
@@ -18,8 +17,8 @@ class Test:
                        return ",".join("%X" % ord(c) for (i, c) in enumerate(self.subset))
 
        def get_profile_flags(self):
-               with io.open(self.profile_path, mode="r", encoding="utf-8") as f:
-                   return f.read().splitlines();
+               with open (self.profile_path, mode="r", encoding="utf-8") as f:
+                   return f.read().splitlines()
 
        def get_font_name(self):
                font_base_name = os.path.basename(self.font_path)