mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-05 21:00:08 +03:00
Merge 69f7525406
into 2218e73c28
This commit is contained in:
commit
5cef0b587a
3
NEWS
3
NEWS
|
@ -7,7 +7,8 @@ What's new in psycopg 2.8
|
||||||
Other changes:
|
Other changes:
|
||||||
|
|
||||||
- Dropped support for Python 2.6, 3.2, 3.3.
|
- Dropped support for Python 2.6, 3.2, 3.3.
|
||||||
|
- Importing psycopg2.psycopg1 is now deprecated. Use psycopg2 instead. The
|
||||||
|
psycopg1 module will be removed in a future version.
|
||||||
|
|
||||||
What's new in psycopg 2.7.4
|
What's new in psycopg 2.7.4
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
@ -27,6 +27,7 @@ old code while porting to psycopg 2. Import it as follows::
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
# License for more details.
|
# License for more details.
|
||||||
|
import warnings
|
||||||
|
|
||||||
from psycopg2 import _psycopg as _2psycopg # noqa
|
from psycopg2 import _psycopg as _2psycopg # noqa
|
||||||
from psycopg2.extensions import cursor as _2cursor
|
from psycopg2.extensions import cursor as _2cursor
|
||||||
|
@ -36,6 +37,12 @@ from psycopg2 import * # noqa
|
||||||
from psycopg2 import extensions as _ext
|
from psycopg2 import extensions as _ext
|
||||||
_2connect = connect
|
_2connect = connect
|
||||||
|
|
||||||
|
warnings.warn(
|
||||||
|
'Importing psycopg1 is deprecated. Use psycopg2 module instead. The '
|
||||||
|
'psycopg1 module will be removed in a future version.',
|
||||||
|
DeprecationWarning,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def connect(*args, **kwargs):
|
def connect(*args, **kwargs):
|
||||||
"""connect(dsn, ...) -> new psycopg 1.1.x compatible connection object"""
|
"""connect(dsn, ...) -> new psycopg 1.1.x compatible connection object"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user