Skip to content

Commit e1a19e7

Browse files
chore: Remove unnecessary blank lines in example files
1 parent 5a9a1ca commit e1a19e7

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

examples/agency.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import onebusaway
42

53

@@ -12,5 +10,6 @@ def main_sync() -> None:
1210
else:
1311
print("Agency data or entry is None.")
1412

13+
1514
if __name__ == "__main__":
1615
main_sync()

examples/stop.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import onebusaway
42

53

@@ -12,5 +10,6 @@ def main_sync() -> None:
1210
else:
1311
print("stop not found")
1412

13+
1514
if __name__ == "__main__":
1615
main_sync()

examples/stop_ids_for_agency.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
2-
31
import onebusaway
42

53

64
def main_sync() -> None:
75
client = onebusaway.OnebusawaySDK(api_key="TEST")
8-
agency_id = "40";
6+
agency_id = "40"
97
stop_ids = client.stop_ids_for_agency.list(agency_id)
10-
if stop_ids.data:
8+
if stop_ids.data and stop_ids.data.list is not None:
119
for stop_id in stop_ids.data.list:
1210
print(stop_id)
1311

examples/trip.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
2-
31
import onebusaway
42

53

64
def main_sync() -> None:
75
client = onebusaway.OnebusawaySDK(api_key="TEST")
86

9-
trip_id = '40_608344966'
7+
trip_id = "40_608344966"
108
trip = client.trip.retrieve(trip_id)
119

1210
if trip.data and trip.data.entry:
1311
print(trip.data.entry)
1412
else:
1513
print("trip data or entry is None.")
1614

15+
1716
if __name__ == "__main__":
1817
main_sync()

0 commit comments

Comments
 (0)