Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/util.py @ 12105:6f58430dfdd0
util: get rid of extra trailing whitespace in parsedate abort message
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 13:29:44 +0900 |
parents | 1f71dffabc53 |
children | e0ee3e822a9a |
comparison
equal
deleted
inserted
replaced
12104:256d447a0fe3 | 12105:6f58430dfdd0 |
---|---|
1067 except (ValueError, OverflowError): | 1067 except (ValueError, OverflowError): |
1068 pass | 1068 pass |
1069 else: | 1069 else: |
1070 break | 1070 break |
1071 else: | 1071 else: |
1072 raise Abort(_('invalid date: %r ') % date) | 1072 raise Abort(_('invalid date: %r') % date) |
1073 # validate explicit (probably user-specified) date and | 1073 # validate explicit (probably user-specified) date and |
1074 # time zone offset. values must fit in signed 32 bits for | 1074 # time zone offset. values must fit in signed 32 bits for |
1075 # current 32-bit linux runtimes. timezones go from UTC-12 | 1075 # current 32-bit linux runtimes. timezones go from UTC-12 |
1076 # to UTC+14 | 1076 # to UTC+14 |
1077 if abs(when) > 0x7fffffff: | 1077 if abs(when) > 0x7fffffff: |