From 07925d15eb4707f0397c26456166e3ea67f5603c Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 7 Oct 2022 14:19:27 +0200 Subject: [PATCH] Removed litter --- pyrmv/__init__.py | 3 +-- pyrmv/raw/board_arrival.py | 4 ---- pyrmv/raw/board_departure.py | 4 ---- pyrmv/raw/him_search.py | 4 ---- pyrmv/raw/journey_detail.py | 4 ---- pyrmv/raw/stop_by_coords.py | 4 ---- pyrmv/raw/stop_by_name.py | 4 ---- pyrmv/raw/trip_find.py | 4 ---- pyrmv/raw/trip_recon.py | 4 ---- 9 files changed, 1 insertion(+), 34 deletions(-) diff --git a/pyrmv/__init__.py b/pyrmv/__init__.py index 9c36b89..ea56d93 100644 --- a/pyrmv/__init__.py +++ b/pyrmv/__init__.py @@ -31,5 +31,4 @@ from . import enums from . import errors from . import utility from .classes import * -from .classes.Client import Client -# from .methods import * \ No newline at end of file +from .classes.Client import Client \ No newline at end of file diff --git a/pyrmv/raw/board_arrival.py b/pyrmv/raw/board_arrival.py index c27cf56..a0216ee 100644 --- a/pyrmv/raw/board_arrival.py +++ b/pyrmv/raw/board_arrival.py @@ -93,10 +93,6 @@ def board_arrival(accessId: str, output = get("https://www.rmv.de/hapi/arrivalBoard", params=payload, headers=headers) - # Exceptions checker moved to normal methods - # and exceptions will no longer raise in raw ones. - # find_exception(output.json()) - if json: return output.json() else: diff --git a/pyrmv/raw/board_departure.py b/pyrmv/raw/board_departure.py index bfa25e7..20dab2a 100644 --- a/pyrmv/raw/board_departure.py +++ b/pyrmv/raw/board_departure.py @@ -94,10 +94,6 @@ def board_departure(accessId: str, output = get("https://www.rmv.de/hapi/departureBoard", params=payload, headers=headers) - # Exceptions checker moved to normal methods - # and exceptions will no longer raise in raw ones. - # find_exception(output.json()) - if json: return output.json() else: diff --git a/pyrmv/raw/him_search.py b/pyrmv/raw/him_search.py index db4976b..ddb1c80 100644 --- a/pyrmv/raw/him_search.py +++ b/pyrmv/raw/him_search.py @@ -132,10 +132,6 @@ def him_search(accessId: str, output = get("https://www.rmv.de/hapi/himsearch", params=payload, headers=headers) - # Exceptions checker moved to normal methods - # and exceptions will no longer raise in raw ones. - # find_exception(output.json()) - if json: return output.json() else: diff --git a/pyrmv/raw/journey_detail.py b/pyrmv/raw/journey_detail.py index fb9de14..8e51335 100644 --- a/pyrmv/raw/journey_detail.py +++ b/pyrmv/raw/journey_detail.py @@ -66,10 +66,6 @@ def journey_detail(accessId: str, output = get("https://www.rmv.de/hapi/journeyDetail", params=payload, headers=headers) - # Exceptions checker moved to normal methods - # and exceptions will no longer raise in raw ones. - # find_exception(output.json()) - if json: return output.json() else: diff --git a/pyrmv/raw/stop_by_coords.py b/pyrmv/raw/stop_by_coords.py index d98b3f5..d17ada7 100644 --- a/pyrmv/raw/stop_by_coords.py +++ b/pyrmv/raw/stop_by_coords.py @@ -66,10 +66,6 @@ def stop_by_coords(accessId: str, output = get("https://www.rmv.de/hapi/location.nearbystops", params=payload, headers=headers) - # Exceptions checker moved to normal methods - # and exceptions will no longer raise in raw ones. - # find_exception(output.json()) - if json: return output.json() else: diff --git a/pyrmv/raw/stop_by_name.py b/pyrmv/raw/stop_by_name.py index 226beec..2b27de7 100644 --- a/pyrmv/raw/stop_by_name.py +++ b/pyrmv/raw/stop_by_name.py @@ -80,10 +80,6 @@ def stop_by_name(accessId: str, output = get("https://www.rmv.de/hapi/location.name", params=payload, headers=headers) - # Exceptions checker moved to normal methods - # and exceptions will no longer raise in raw ones. - # find_exception(output.json()) - if json: return output.json() else: diff --git a/pyrmv/raw/trip_find.py b/pyrmv/raw/trip_find.py index aaf7aed..cf1965a 100644 --- a/pyrmv/raw/trip_find.py +++ b/pyrmv/raw/trip_find.py @@ -248,10 +248,6 @@ def trip_find(accessId: str, output = get("https://www.rmv.de/hapi/trip", params=payload, headers=headers) - # Exceptions checker moved to normal methods - # and exceptions will no longer raise in raw ones. - # find_exception(output.json()) - if json: return output.json() else: diff --git a/pyrmv/raw/trip_recon.py b/pyrmv/raw/trip_recon.py index d5601e5..b6298d7 100644 --- a/pyrmv/raw/trip_recon.py +++ b/pyrmv/raw/trip_recon.py @@ -102,10 +102,6 @@ def trip_recon(accessId: str, output = get("https://www.rmv.de/hapi/recon", params=payload, headers=headers) - # Exceptions checker moved to normal methods - # and exceptions will no longer raise in raw ones. - # find_exception(output.json()) - if json: return output.json() else: