diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-10-14 14:32:32 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-10-14 15:17:27 +0100 |
commit | 646c33a7c86e5d2a5532a9b67396a80a963b029c (patch) | |
tree | 30fc161835dcd2a6001b1568c8bac735a84c55b8 | |
parent | ce37f3d6396387d55af43b2372351d63a6530a23 (diff) |
rfc822_date_to_git: Fix docstring for new dateutil.parser.parse
dateutil.parser.parse now, on failure, throws ValueError containing a
tuple - now it has the troublesome string too.
This causes the tests to fail in Debian sid.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r-- | gbp/git/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git/__init__.py b/gbp/git/__init__.py index b3bc599..4bb8588 100644 --- a/gbp/git/__init__.py +++ b/gbp/git/__init__.py @@ -41,7 +41,7 @@ def rfc822_date_to_git(rfc822_date, fuzzy=False): >>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100') Traceback (most recent call last): ... - ValueError: Unknown string format + ValueError: ('Unknown string format:', 'So, 26 Feb 1998 8:50:00 +0100') >>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100', fuzzy=True) '888479400 +0100' """ |