aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-01-28 20:22:19 +0100
committerOlivier Tilloy <olivier@tilloy.net>2009-01-28 20:22:19 +0100
commit50e0bbb87603ff2c027011a1ffb6143a9ca4f032 (patch)
tree6721141854acb3bb512ee597ca250bb7293ce33d
parente3861f261f21a53cb7db84261db78215a25cac6a (diff)
downloadpyexiv2-50e0bbb87603ff2c027011a1ffb6143a9ca4f032.tar.gz
Removed an unnecessary comment.
The datetime conversion will fail with a ValueError transformed in an XmpValueError if the values are not in the allowed ranges.
-rw-r--r--src/pyexiv2.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index cdd55cc..a147340 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -482,7 +482,6 @@ class XmpTag(MetadataTag):
# strptime is not flexible enough to handle all valid Date formats, we use a
# custom regular expression
- # TODO: restrict the value ranges for year, month, day, hours, minutes, seconds, tzd
_time_zone_re = r'Z|((?P<sign>\+|-)(?P<ohours>\d{2}):(?P<ominutes>\d{2}))'
_time_re = r'(?P<hours>\d{2}):(?P<minutes>\d{2})(:(?P<seconds>\d{2})(.(?P<decimal>\d+))?)?(?P<tzd>%s)' % _time_zone_re
_date_re = re.compile(r'(?P<year>\d{4})(-(?P<month>\d{2})(-(?P<day>\d{2})(T(?P<time>%s))?)?)?' % _time_re)