1.1 --- a/imiptools/content.py Tue Dec 16 01:04:09 2014 +0100
1.2 +++ b/imiptools/content.py Thu Dec 18 18:57:55 2014 +0100
1.3 @@ -125,7 +125,7 @@
1.4 return value.lower().startswith("mailto:") and value.lower()[7:] or value
1.5
1.6 def get_uri(value):
1.7 - return value.lower().startswith("mailto:") and value or ":" in value and value or "mailto:%s" % value.lower()
1.8 + return value.lower().startswith("mailto:") and value.lower() or ":" in value and value or "mailto:%s" % value.lower()
1.9
1.10 def uri_dict(d):
1.11 return dict([(get_uri(key), value) for key, value in d.items()])
1.12 @@ -488,7 +488,7 @@
1.13
1.14 old_dtstamp = self.dtstamp < dtstamp
1.15
1.16 - if sequence is not None and self.sequence is not None (
1.17 + if sequence is not None and self.sequence is not None and (
1.18 int(self.sequence) < int(sequence) or
1.19 int(self.sequence) == int(sequence) and old_dtstamp
1.20 ) or old_dtstamp: