core: cleanup/sort imports according to ruff check --select I

This commit is contained in:
Dima Gerasimov 2024-08-16 13:25:19 +03:00
parent 7023088d13
commit 478e288ea8
45 changed files with 235 additions and 170 deletions

View file

@ -41,9 +41,9 @@ def locations_to_gpx(locations: Iterable[LocationProtocol], buffer: TextIO) -> I
try:
import gpxpy.gpx
except ImportError as ie:
from my.core.warnings import warn
from my.core.warnings import high
warn("gpxpy not installed, cannot write to gpx. 'pip install gpxpy'")
high("gpxpy not installed, cannot write to gpx. 'pip install gpxpy'")
raise ie
gpx = gpxpy.gpx.GPX()