From 09fb131f1a06b874e0fc737962589d49ebc5fe9f Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 5 Apr 2014 13:37:42 +0100 Subject: [PATCH] Don't specify 0 or 1 in closed docs There's also 2 which means broken. But I prefer to leave that as implementation detail. --- doc/src/connection.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/connection.rst b/doc/src/connection.rst index eac2f001..2d483920 100644 --- a/doc/src/connection.rst +++ b/doc/src/connection.rst @@ -295,8 +295,8 @@ The ``connection`` class .. attribute:: closed - Read-only attribute reporting whether the database connection is open - (0) or closed (1). + Read-only integer attribute: 0 if the connection is open, nonzero if + it is closed or broken. .. method:: cancel