From 876d8fdd8e31f1e9bcd1efe71c603082dc6c89bc Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Sat, 22 Jan 2011 02:29:33 +0100 Subject: [PATCH] distro_info.py: simplify if statement. --- ubuntutools/distro_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntutools/distro_info.py b/ubuntutools/distro_info.py index 7ee1c76..b63b7c5 100644 --- a/ubuntutools/distro_info.py +++ b/ubuntutools/distro_info.py @@ -21,7 +21,7 @@ import sys def convert_date(string): """Convert a date string in ISO 8601 into a datetime object.""" - if string is None or string == "": + if not string: date = None else: try: