mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-14 10:12:20 +03:00
Merge pull request #646 from jdufresne/drop-deprecated
Drop long deprecated function register_tstz_w_secs()
This commit is contained in:
commit
afd7c6c284
1
NEWS
1
NEWS
|
@ -8,6 +8,7 @@ Other changes:
|
||||||
|
|
||||||
- Dropped support for Python 2.6, 3.2, 3.3.
|
- Dropped support for Python 2.6, 3.2, 3.3.
|
||||||
- Dropped `psycopg1` module.
|
- Dropped `psycopg1` module.
|
||||||
|
- Dropped deprecated ``register_tstz_w_secs()`` (was previously a no-op).
|
||||||
|
|
||||||
|
|
||||||
What's new in psycopg 2.7.4
|
What's new in psycopg 2.7.4
|
||||||
|
|
|
@ -1025,20 +1025,6 @@ parameters. By reducing the number of server roundtrips the performance can be
|
||||||
.. versionadded:: 2.7
|
.. versionadded:: 2.7
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. index::
|
|
||||||
single: Time zones; Fractional
|
|
||||||
|
|
||||||
Fractional time zones
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
.. autofunction:: register_tstz_w_secs
|
|
||||||
|
|
||||||
.. versionadded:: 2.0.9
|
|
||||||
|
|
||||||
.. versionchanged:: 2.2.2
|
|
||||||
function is no-op: see :ref:`tz-handling`.
|
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
pair: Example; Coroutine;
|
pair: Example; Coroutine;
|
||||||
|
|
||||||
|
|
|
@ -560,8 +560,7 @@ rounded to the nearest minute, with an error of up to 30 seconds.
|
||||||
|
|
||||||
.. versionchanged:: 2.2.2
|
.. versionchanged:: 2.2.2
|
||||||
timezones with seconds are supported (with rounding). Previously such
|
timezones with seconds are supported (with rounding). Previously such
|
||||||
timezones raised an error. In order to deal with them in previous
|
timezones raised an error.
|
||||||
versions use `psycopg2.extras.register_tstz_w_secs()`.
|
|
||||||
|
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
|
|
|
@ -719,18 +719,6 @@ def register_inet(oid=None, conn_or_curs=None):
|
||||||
return _ext.INET
|
return _ext.INET
|
||||||
|
|
||||||
|
|
||||||
def register_tstz_w_secs(oids=None, conn_or_curs=None):
|
|
||||||
"""The function used to register an alternate type caster for
|
|
||||||
:sql:`TIMESTAMP WITH TIME ZONE` to deal with historical time zones with
|
|
||||||
seconds in the UTC offset.
|
|
||||||
|
|
||||||
These are now correctly handled by the default type caster, so currently
|
|
||||||
the function doesn't do anything.
|
|
||||||
"""
|
|
||||||
import warnings
|
|
||||||
warnings.warn("deprecated", DeprecationWarning)
|
|
||||||
|
|
||||||
|
|
||||||
def wait_select(conn):
|
def wait_select(conn):
|
||||||
"""Wait until a connection or cursor has data available.
|
"""Wait until a connection or cursor has data available.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user