Skip to content
Snippets Groups Projects
Commit 89de9349 authored by Vincent Breitmoser's avatar Vincent Breitmoser
Browse files

Use psycopg2cffi module instead of psycopg2 if running on pypy

The psycopg2 package isn't available for PyPy.  This commit adds a check
if the runtime is PyPy, and if it is uses psycopg2cffi module in favor
of psycopg2. This is almost a drop-in replacement, except for one place
where an additional cast to string is required.
parent 9fbe70a7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment