diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-01-28 20:22:19 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-01-28 20:22:19 +0100 |
commit | 50e0bbb87603ff2c027011a1ffb6143a9ca4f032 (patch) | |
tree | 6721141854acb3bb512ee597ca250bb7293ce33d /src | |
parent | e3861f261f21a53cb7db84261db78215a25cac6a (diff) | |
download | pyexiv2-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/pyexiv2.py | 1 |
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) |