From 75b98b561b3cc3be6cb1482b18e5dd2f44dabed4 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 22f1f066..121705f0 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