summaryrefslogtreecommitdiff
path: root/paste/util/datetimeutil.py
diff options
context:
space:
mode:
authorcce <devnull@localhost>2006-08-24 18:26:16 +0000
committercce <devnull@localhost>2006-08-24 18:26:16 +0000
commit094fbc3ba0713a8d92b6a20a2befa2115172fdf3 (patch)
tree62db727150059a8346fc1f0bf280496aae86c974 /paste/util/datetimeutil.py
parent69405370d260e231a0df58d359b49462f01c9801 (diff)
downloadpaste-094fbc3ba0713a8d92b6a20a2befa2115172fdf3.tar.gz
Somewhere in the past two years day_of_week changed to
isoweekday() in the datetime API.
Diffstat (limited to 'paste/util/datetimeutil.py')
-rw-r--r--paste/util/datetimeutil.py2
1 files changed, 1 insertions, 1 deletions
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