refer to config.open instead of importing open from config to the local namespace
authorAndré Wobst <[email protected]>
Wed, 17 May 2017 03:46:05 +0000 (17 03:46 +0000)
committerAndré Wobst <[email protected]>
Wed, 17 May 2017 03:46:05 +0000 (17 03:46 +0000)
git-svn-id: http://svn.code.sf.net/p/pyx/code/trunk/pyx@3684 a4f5e268-e194-4f32-bce1-d30804cbbcc5

pyx/text.py

index cb16507..f468a41 100644 (file)
@@ -1515,7 +1515,6 @@ class LatexRunner(MultiRunner):
         super().__init__(SingleLatexRunner, *args, **kwargs)
 
 
-from pyx.config import open, format
 from pyx.font import T1font
 from pyx.font.t1file import from_PF_bytes
 from pyx.font.afmfile import AFMfile
@@ -1569,8 +1568,8 @@ class unicodetextbox_pt(textbox_pt):
 class UnicodeText:
 
     def __init__(self, fontname="cmr10", size=10):
-        self.font = T1font(from_PF_bytes(open(fontname, [format.type1]).read()), 
-                           AFMfile(open(fontname, [format.afm], ascii=True)))
+        self.font = T1font(from_PF_bytes(config.open(fontname, [config.format.type1]).read()), 
+                           AFMfile(config.open(fontname, [config.format.afm], ascii=True)))
         self.size = size
 
     def preamble(self):