From 094fbc3ba0713a8d92b6a20a2befa2115172fdf3 Mon Sep 17 00:00:00 2001 From: cce Date: Thu, 24 Aug 2006 18:26:16 +0000 Subject: Somewhere in the past two years day_of_week changed to isoweekday() in the datetime API. --- paste/util/datetimeutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paste/util/datetimeutil.py') diff --git a/paste/util/datetimeutil.py b/paste/util/datetimeutil.py index 7fbccbe..182fc6b 100644 --- a/paste/util/datetimeutil.py +++ b/paste/util/datetimeutil.py @@ -217,7 +217,7 @@ def parse_date(val): elif chk in _wkdy: now = date.today() idx = list(_wkdy).index(chk) - while now.day_of_week != idx: + while now.isoweekday() != idx: now += _one_day # allow dates to be modified via + or - /w number of days, so -- cgit v1.2.1