]> granicus.if.org Git - python/commitdiff
Clean-up an example.
authorRaymond Hettinger <python@rcn.com>
Wed, 8 Apr 2009 22:50:09 +0000 (22:50 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 8 Apr 2009 22:50:09 +0000 (22:50 +0000)
Doc/whatsnew/3.1.rst

index d54196ed28dc411f4ea3d9d4155dcd0e3369d565..7ada5dd1de448276818df4ff1b66bd79ddc7c7ce 100644 (file)
@@ -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]