]> git.openstreetmap.org Git - nominatim.git/commitdiff
disable warning about non-toplevel import
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 30 Jan 2021 15:27:02 +0000 (16:27 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 30 Jan 2021 15:29:28 +0000 (16:29 +0100)
They are needed here so nominatim can be run when osmium
is not installed. Everything except replication will work fine.

nominatim/cli.py

index cc591ea583c5c7ec9457aa2e758662148c121809..487206c1562e7d796f35a30c6b1799e47cb2109d 100644 (file)
@@ -123,6 +123,8 @@ def _osm2pgsql_options_from_args(args, default_cache, default_threads):
 #
 # No need to document the functions each time.
 # pylint: disable=C0111
+# Using non-top-level imports to make pyosmium optional for replication only.
+# pylint: disable=C0415
 
 
 class SetupAll: