From: Raymond Hettinger Date: Wed, 8 Apr 2009 22:50:09 +0000 (+0000) Subject: Clean-up an example. X-Git-Tag: v3.1b1~335 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a39e0f98e915a6c53dce051a0fc02e5fd25f018;p=python Clean-up an example. --- diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst index d54196ed28..7ada5dd1de 100644 --- a/Doc/whatsnew/3.1.rst +++ b/Doc/whatsnew/3.1.rst @@ -215,8 +215,8 @@ New, Improved, and Deprecated Modules the field names are being created by an external source such as a CSV header, SQL field list, or user input:: - >>> query = input('Enter a query: ') - Enter a query: SELECT region, dept, count(*) FROM main GROUPBY region, dept + >>> query = input() + SELECT region, dept, count(*) FROM main GROUPBY region, dept >>> cursor.execute(query) >>> query_fields = [desc[0] for desc in cursor.description]