Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix spacing
  • Loading branch information
merwok authored Apr 26, 2023
commit ac783cfdd5257a7ff8862dd813b3e4bb4ad24424
6 changes: 3 additions & 3 deletions Lib/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ def __str__(self):


def __getattr__(name):
if name in ('January','February'):
if name in ('January', 'February'):
warnings.warn(f"The '{name}' attribute is deprecated, use '{name.upper()}' instead",
DeprecationWarning,
stacklevel=2)
DeprecationWarning, stacklevel=2)
if name == 'January':
return 1
else:
Expand Down Expand Up @@ -84,6 +83,7 @@ class Day(IntEnum):
SUNDAY = 6


Comment thread
merwok marked this conversation as resolved.

# Number of days per month (except for February in leap years)
mdays = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

Expand Down