pep8: Use "X not in Y" instead of "not X in Y"
flake8 --select E713, semi-manual fixing
This commit is contained in:
parent
31a96228db
commit
21e8f82fd7
57 changed files with 81 additions and 83 deletions
|
|
@ -90,7 +90,7 @@ class VoyagesSNCFModule(Module, CapTravel):
|
|||
yield Station(_id, unicode(name))
|
||||
# ...then ones whose name contains pattern.
|
||||
for _id, name in enumerate(self.STATIONS):
|
||||
if pattern in name.lower() and not _id in already:
|
||||
if pattern in name.lower() and _id not in already:
|
||||
yield Station(_id, unicode(name))
|
||||
|
||||
def iter_station_departures(self, station_id, arrival_id=None, date=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue