Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def download_data(self) -> None: # coverage: ignore
from .. import session
c = session.get(base_url + "/earth_awy.dat")
c.raise_for_status()
b = BytesIO(c.content)
self._data = pd.read_csv(b, sep=" ", header=None)
self._data.columns = ["route", "id", "navaid", "latitude", "longitude"]
self._data.to_pickle(self.cache_dir / "traffic_airways.pkl")