commit | 25ccb9c3460b05522eae9283a4c9ea783da87aa4 | [log] [tgz] |
---|---|---|
author | jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> | Fri May 03 19:38:07 2002 +0000 |
committer | jvr <jvr@4cde692c-a291-49d1-8350-778aa11640f8> | Fri May 03 19:38:07 2002 +0000 |
tree | 73f50a5cc11550e557ccbc65e602bc499aaae767 | |
parent | 7b31570b700d6b285bb7757e520c7a98739100c4 [diff] [blame] |
MacPython 2.2 compatibility fix. git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@199 4cde692c-a291-49d1-8350-778aa11640f8
diff --git a/Lib/fontTools/t1Lib.py b/Lib/fontTools/t1Lib.py index f017e43..40e67f6 100644 --- a/Lib/fontTools/t1Lib.py +++ b/Lib/fontTools/t1Lib.py
@@ -26,7 +26,10 @@ import os if os.name == 'mac': - import Res + try: + from Carbon import Res + except ImportError: + import Res # MacPython < 2.2 import macfs error = 't1Lib.error'