summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2010-07-13 14:26:52 +0200
committerFederico Di Gregorio <fog@initd.org>2010-07-13 14:26:52 +0200
commitb263fbf274f9085a1bddca018ed8a50d37023fc7 (patch)
treef0219a5abc64d5231dc52575ed75117857128a1f
parentdeb2d9050fe2bfb9cd96e8042161b3aeb9559a32 (diff)
downloadpsycopg2-b263fbf274f9085a1bddca018ed8a50d37023fc7.tar.gz
Added deprecation warning to register_tstz_w_secs
-rw-r--r--lib/extras.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/extras.py b/lib/extras.py
index 67f768e..88f85a7 100644
--- a/lib/extras.py
+++ b/lib/extras.py
@@ -27,6 +27,7 @@ and classes untill a better place in the distribution is found.
import os
import time
+import warnings
import re as regex
try:
@@ -443,7 +444,7 @@ def register_tstz_w_secs(oids=None, conn_or_curs=None):
These are now correctly handled by the default type caster, so currently
the function doesn't do anything.
"""
- pass
+ warnings.warn("deprecated", DeprecationWarning)
import select