Skip to content

Commit 8323e0f

Browse files
committed
address flake8 issues
1 parent 05b503e commit 8323e0f

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

python-calendar/python_calendar.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,35 @@
2525
locale_calendar = calendar.LocaleTextCalendar(locale="de_DE.UTF-8")
2626
locale_calendar.prmonth(2024, 1)
2727

28-
"""Print weekday number values in order with Sunday (6) as the first day of the week"""
28+
"""Print weekday number values in order with Sunday (6) as the first
29+
day of the week"""
2930

3031
for day_number in text_calendar.iterweekdays():
3132
print(day_number)
3233

33-
"""Print all dates of January 2024 calendar as strings including dates from previous and following months
34-
needed to complete the first and last weeks"""
34+
"""Print all dates of January 2024 calendar as strings including dates from
35+
previous and following months needed to complete the first and last weeks"""
3536

3637
for day in text_calendar.itermonthdates(2024, 1):
3738
day.strftime("%m/%d/%Y")
3839

39-
"""Print all dates of January 2024 calendar as numerical days of the month including dates from previous
40-
and following months needed to complete the first and last weeks represented as zeros"""
40+
"""Print all dates of January 2024 calendar as numerical days of the month
41+
including dates from previous and following months needed to complete the
42+
first and last weeks represented as zeros"""
4143

4244
for day in text_calendar.itermonthdays(2024, 1):
4345
print(day)
4446

45-
"""Print all dates of January 2024 calendar as tuples containing the day of the month and day of the week
46-
as numbers"""
47+
"""Print all dates of January 2024 calendar as tuples containing the day of
48+
the month and day of the week as numbers"""
49+
4750
for day in text_calendar.itermonthdays2(2024, 1):
4851
print(day)
4952

5053
"""Check if a given year is a leap year"""
54+
5155
calendar.isleap(2024)
5256

5357
"""Return the number of leap years between two given years"""
58+
5459
calendar.leapdays(1980, 2024)

0 commit comments

Comments
 (0)