From 64892f5a34ad2eda5b7675566837b546e3b717e6 Mon Sep 17 00:00:00 2001 From: Just Date: Wed, 27 Jun 2001 23:09:57 +0000 Subject: [PATCH] Don't take month and day names from calendar.py: a buggy Metrowerks strftime() made this crash hard in Python 2.2. git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@137 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/ttLib/tables/_h_e_a_d.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/fontTools/ttLib/tables/_h_e_a_d.py b/Lib/fontTools/ttLib/tables/_h_e_a_d.py index 7591742e7..4a7caceda 100644 --- a/Lib/fontTools/ttLib/tables/_h_e_a_d.py +++ b/Lib/fontTools/ttLib/tables/_h_e_a_d.py @@ -2,7 +2,6 @@ import DefaultTable import sstruct import time import string -import calendar from fontTools.misc.textTools import safeEval, num2binary, binary2num @@ -106,8 +105,9 @@ def calc_mac_epoch_diff(): mac_epoch_diff = calc_mac_epoch_diff() -_months = map(string.lower, calendar.month_abbr) -_weekdays = map(string.lower, calendar.day_abbr) +_months = [' ', 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', + 'sep', 'oct', 'nov', 'dec'] +_weekdays = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] def parse_date(datestring): datestring = string.lower(datestring)