[devscripts] Improve hack to convert command-line options to API options

* define equality for DateRange
* don't show default DateRange
This commit is contained in:
dirkf
2023-04-05 18:47:49 +01:00
parent 78da22489b
commit 25124bd640
2 changed files with 26 additions and 3 deletions

View File

@ -3190,6 +3190,10 @@ class DateRange(object):
def __str__(self):
return '%s - %s' % (self.start.isoformat(), self.end.isoformat())
def __eq__(self, other):
return (isinstance(other, DateRange)
and self.start == other.start and self.end == other.end)
def platform_name():
""" Returns the platform name as a compat_str """