mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-06-01 11:01:29 +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):
|
def convert_date(string):
|
||||||
"""Convert a date string in ISO 8601 into a datetime object."""
|
"""Convert a date string in ISO 8601 into a datetime object."""
|
||||||
if string is None or string == "":
|
if not string:
|
||||||
date = None
|
date = None
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user