[Code Cleanup] Update some variable names to conform with PEP8

This commit is contained in:
2018-07-03 08:27:17 +02:00
parent 9dd2a1120f
commit 5f5ccaa1ea
2 changed files with 10 additions and 10 deletions

View File

@@ -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