black formatting

This commit is contained in:
DSK 2021-10-03 12:47:44 +05:30
parent eed7100715
commit 9b233f49e5
1 changed files with 9 additions and 9 deletions

View File

@ -38,7 +38,7 @@ def display_calendar(year=None):
if day and (day, month, year) == today_tuple:
_day = "[bold underline red]%s[/]" % day
else:
_day = "%s" % ('' if day == 0 else day)
_day = "%s" % ("" if day == 0 else day)
days.append(_day)
table.add_row(*days)
@ -48,9 +48,9 @@ def display_calendar(year=None):
print(columns)
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Rich calendar')
parser.add_argument('year', metavar='year', type=int, default=None)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Rich calendar")
parser.add_argument("year", metavar="year", type=int, default=None)
args = parser.parse_args()
display_calendar(args.year)