[Tile-serving] [openstreetmap/osm2pgsql] Fix running osm2pgsql-replication with psycopg3 (PR #2044)
Paul Norman
notifications at github.com
Wed Aug 16 22:04:36 UTC 2023
@pnorman commented on this pull request.
> @@ -13,8 +13,13 @@
from importlib.machinery import SourceFileLoader
from behave import *
-import psycopg2
-from psycopg2 import sql
+try:
+ import psycopg2 as psycopg
+ from psycopg2 import sql
+except ImportError:
+ import psycopg
+ from psycopg import sql
+
I'd rather import 3 if both are available
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/2044#pullrequestreview-1581498769
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/2044/review/1581498769 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230816/b3c3fca6/attachment.htm>
More information about the Tile-serving
mailing list