From a4fcbfed0f1d146a4c732698a3bf9646b889eccb Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 29 Jan 2018 03:10:56 +0000 Subject: [PATCH] Dropped recipe to install namedtuple on Python < 2.6 We don't support such Python versions anymore. --- doc/src/extras.rst | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/doc/src/extras.rst b/doc/src/extras.rst index c844873a..cb8335be 100644 --- a/doc/src/extras.rst +++ b/doc/src/extras.rst @@ -99,20 +99,6 @@ Real dictionary cursor .. versionadded:: 2.3 -These objects require :py:func:`collections.namedtuple` to be found, so it is -available out-of-the-box only from Python 2.6. Anyway, the namedtuple -implementation is compatible with previous Python versions, so all you -have to do is to `download it`__ and make it available where we -expect it to be... :: - - from somewhere import namedtuple - import collections - collections.namedtuple = namedtuple - from psycopg.extras import NamedTupleConnection - # ... - -.. __: http://code.activestate.com/recipes/500261-named-tuples/ - .. autoclass:: NamedTupleCursor .. autoclass:: NamedTupleConnection