summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2009-11-12 10:41:24 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2009-11-12 10:41:24 (GMT)
commitcf2ec6d4fd31e36dbed45a16cbe57e63a96541bc (patch)
treeb1db36ebe1e939d193689f69b73810cfa6ba3502 /Doc/tutorial
parentb78ba6b3d052c933dc3f91d0ef5d639f94e7dd7e (diff)
downloadcpython-cf2ec6d4fd31e36dbed45a16cbe57e63a96541bc.zip
cpython-cf2ec6d4fd31e36dbed45a16cbe57e63a96541bc.tar.gz
cpython-cf2ec6d4fd31e36dbed45a16cbe57e63a96541bc.tar.bz2
fix highlight in the datetime example
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/stdlib.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst
index de33259..98702a5 100644
--- a/Doc/tutorial/stdlib.rst
+++ b/Doc/tutorial/stdlib.rst
@@ -181,7 +181,7 @@ focus of the implementation is on efficient member extraction for output
formatting and manipulation. The module also supports objects that are timezone
aware. ::
- # dates are easily constructed and formatted
+ >>> # dates are easily constructed and formatted
>>> from datetime import date
>>> now = date.today()
>>> now
@@ -189,7 +189,7 @@ aware. ::
>>> now.strftime("%m-%d-%y. %d %b %Y is a %A on the %d day of %B.")
'12-02-03. 02 Dec 2003 is a Tuesday on the 02 day of December.'
- # dates support calendar arithmetic
+ >>> # dates support calendar arithmetic
>>> birthday = date(1964, 7, 31)
>>> age = now - birthday
>>> age.days