projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Easier and more self documenting patterns for loading/saving Persistent
[python_utils.git]
/
dateparse
/
dateparse_utils.py
diff --git
a/dateparse/dateparse_utils.py
b/dateparse/dateparse_utils.py
index ee2bbd9f6a9ef47519815d1747bde6124eb591af..2e6eabde5ee155f1ca81e4c1f0c3f542f96dfb96 100755
(executable)
--- a/
dateparse/dateparse_utils.py
+++ b/
dateparse/dateparse_utils.py
@@
-348,7
+348,7
@@
class DateParser(dateparse_utilsListener):
return 5
def _parse_normal_date(self) -> datetime.date:
- if 'dow' in self.context:
+ if 'dow' in self.context
and 'month' not in self.context
:
d = self.today
while d.weekday() != self.context['dow']:
d += datetime.timedelta(days=1)