Imported Upstream version 1.8.1
[platform/upstream/harfbuzz.git] / test / shaping / hb_test_tools.py
index f7e5943..8348dc2 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 
-from __future__ import print_function
+from __future__ import print_function, division, absolute_import
+
 import sys, os, re, difflib, unicodedata, errno, cgi
 from itertools import *
 
@@ -513,7 +514,7 @@ class FileHelpers:
        def open_file_or_stdin (f):
                if f == '-':
                        return sys.stdin
-               return file (f)
+               return open (f)
 
 
 class Manifest:
@@ -532,7 +533,7 @@ class Manifest:
                if os.path.isdir (s):
 
                        try:
-                               m = file (os.path.join (s, "MANIFEST"))
+                               m = open (os.path.join (s, "MANIFEST"))
                                items = [x.strip () for x in m.readlines ()]
                                for f in items:
                                        for p in Manifest.read (os.path.join (s, f)):