Permalink
Browse files

Deprecating psycopg support in BioSQL code (use psycopg2 instead)

  • Loading branch information...
1 parent 9726314 commit 1b8c00fc024a2bc33983bbd1d3cf38ad26481245 @peterjc peterjc committed Jun 22, 2009
Showing with 13 additions and 0 deletions.
  1. +8 −0 BioSQL/BioSeqDatabase.py
  2. +5 −0 DEPRECATED
View
@@ -75,6 +75,14 @@ def open_database(driver = "MySQLdb", **kwargs):
server = DBServer(conn, module)
+ if driver == "psycopg" :
+ import warnings
+ warnings.warn("Using BioSQL with psycopg (version one) is deprecated. "
+ "It still works for now, but we recommend you update "
+ "to using psycopg2 as a future release of Biopython "
+ "will drop support for psycop (version one).",
+ DeprecationWarning)
+
# TODO - Remove the following once BioSQL Bug 2839 is fixed.
# Test for RULES in PostgreSQL schema, see also Bug 2833.
if driver in ["psycopg", "psycopg2", "pgdb"]:
View
@@ -7,6 +7,11 @@ Python 2.3
No longer supported as of Release 1.51, having triggered a warning with
Release 1.50, with a mention in the release notes for Release 1.49.
+BioSQL and psycopg
+==================
+Support for psycopg (version one) in Biopython's BioSQL code was deprecated
+in Release 1.51, please use psycopg2 instead.
+
Bio.Entrez.efetch and rettype="genbank"
=======================================
As of Easter 2009, the NCBI have stopped supporting the unofficial return type

0 comments on commit 1b8c00f

Please sign in to comment.