mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-12 19:01:08 +00:00
distro_info.py: simplify if statement.
This commit is contained in:
parent
013af48c51
commit
876d8fdd8e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user