Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 1 addition & 2 deletions transitfeed/agency.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def Validate(self, problems=default_problem_reporter):
"""Validate attribute values and this object's internal consistency.

Returns:
True iff all validation checks passed.
True if all validation checks passed.
"""
found_problem = False
found_problem = ((not util.ValidateRequiredFieldsAreNotEmpty(
Expand All @@ -111,4 +111,3 @@ def ValidateAfterAdd(self, problems):

def AddToSchedule(self, schedule, problems):
schedule.AddAgencyObject(self, problems)

2 changes: 1 addition & 1 deletion transitfeed/gtfsobjectbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __setattr__(self, name, value):
self._schedule.AddTableColumn(self.__class__._TABLE_NAME, name)

def __eq__(self, other):
"""Return true iff self and other are equivalent"""
"""Return true if self and other are equivalent"""
if not other:
return False

Expand Down
4 changes: 2 additions & 2 deletions transitfeed/serviceperiod.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def HasDateExceptionOn(self, date, exception_type=_EXCEPTION_TYPE_ADD):
_EXCEPTION_TYPE_ADD

Returns:
True iff this service has service exception of specified type at date.
True if this service has service exception of specified type at date.
"""
if date in self.date_exceptions:
return exception_type == self.date_exceptions[date][0]
Expand All @@ -202,7 +202,7 @@ def IsActiveOn(self, date, date_object=None):
costly conversion from string to date object.

Returns:
True iff this service is active on date.
True if this service is active on date.
"""
if date in self.date_exceptions:
exception_type, _ = self.date_exceptions[date]
Expand Down