forked from gergely/calendar-social
[Code Cleanup] Update some variable names to conform with PEP8
This commit is contained in:
@@ -92,11 +92,11 @@ class GregorianCalendar(CalendarSystem):
|
||||
@property
|
||||
def prev_month_name(self):
|
||||
if self.timestamp.month == 1:
|
||||
ts = self.prev_year.replace(month=12)
|
||||
timestamp = self.prev_year.replace(month=12)
|
||||
else:
|
||||
ts = self.timestamp.replace(month=self.timestamp.month - 1)
|
||||
timestamp = self.timestamp.replace(month=self.timestamp.month - 1)
|
||||
|
||||
return self.month_names[ts.month - 1]
|
||||
return self.month_names[timestamp.month - 1]
|
||||
|
||||
@property
|
||||
@to_timestamp
|
||||
@@ -109,11 +109,11 @@ class GregorianCalendar(CalendarSystem):
|
||||
@property
|
||||
def next_month_name(self):
|
||||
if self.timestamp.month == 12:
|
||||
ts = self.prev_year.replace(month=1)
|
||||
timestamp = self.prev_year.replace(month=1)
|
||||
else:
|
||||
ts = self.timestamp.replace(month=self.timestamp.month + 1)
|
||||
timestamp = self.timestamp.replace(month=self.timestamp.month + 1)
|
||||
|
||||
return self.month_names[ts.month - 1]
|
||||
return self.month_names[timestamp.month - 1]
|
||||
|
||||
@property
|
||||
@to_timestamp
|
||||
|
Reference in New Issue
Block a user