Skip to content

Commit 3db8f32

Browse files
committed
add missing module
1 parent 57bd44d commit 3db8f32

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

blitzortung/db/compat.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- coding: utf8 -*-
2+
3+
"""
4+
5+
Copyright 2014-2016 Andreas Würl
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
"""
20+
21+
"""
22+
Database compatibility layer for psycopg2cffi.
23+
24+
This module registers psycopg2cffi as a drop-in replacement for psycopg2,
25+
which is useful for PyPy compatibility. The registration happens automatically
26+
when this module is imported.
27+
"""
28+
29+
try:
30+
from psycopg2cffi import compat
31+
compat.register()
32+
except ImportError:
33+
pass

0 commit comments

Comments
 (0)