From d04a3bb4f932dff5dfbd45ed33fa4c357b471527 Mon Sep 17 00:00:00 2001 From: jvr Date: Thu, 2 May 2002 15:23:25 +0000 Subject: [PATCH] use version from fontTools.__init__.py git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@184 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/ttLib/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/fontTools/ttLib/__init__.py b/Lib/fontTools/ttLib/__init__.py index 902416e5b..3f2cc070e 100644 --- a/Lib/fontTools/ttLib/__init__.py +++ b/Lib/fontTools/ttLib/__init__.py @@ -42,15 +42,14 @@ Dumping 'prep' table... """ # -# $Id: __init__.py,v 1.18 2002-05-01 21:06:11 jvr Exp $ +# $Id: __init__.py,v 1.19 2002-05-02 15:23:25 jvr Exp $ # -__version__ = "1.0a6" - import os import string import types + class TTLibError(Exception): pass @@ -173,6 +172,7 @@ class TTFont: list of tables to dump. The 'skipTables' argument may be a list of tables to skip, but only when the 'tables' argument is false. """ + from fontTools import version import xmlWriter self.disassembleInstructions = disassembleInstructions @@ -189,7 +189,7 @@ class TTFont: if not splitTables: writer = xmlWriter.XMLWriter(fileOrPath) writer.begintag("ttFont", sfntVersion=`self.sfntVersion`[1:-1], - ttLibVersion=__version__) + ttLibVersion=version) writer.newline() writer.newline() else: @@ -204,7 +204,7 @@ class TTFont: if splitTables: writer = xmlWriter.XMLWriter(fileNameTemplate % tag2identifier(tag)) writer.begintag("ttFont", sfntVersion=`self.sfntVersion`[1:-1], - ttLibVersion=__version__) + ttLibVersion=version) writer.newline() writer.newline() table = self[tag]