diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-11-12 09:10:02 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-11-12 09:10:02 (GMT) |
commit | c4cd6d3765d054ac1b23f0f9765a2eaf3f1e7be7 (patch) | |
tree | 5ecffbfb3b3f8bcf7b776b3e2fd997fc65c27a27 | |
parent | 7232d41569fa4d76c1d3e0c9c87c3f56311e6829 (diff) | |
download | cpython-c4cd6d3765d054ac1b23f0f9765a2eaf3f1e7be7.zip cpython-c4cd6d3765d054ac1b23f0f9765a2eaf3f1e7be7.tar.gz cpython-c4cd6d3765d054ac1b23f0f9765a2eaf3f1e7be7.tar.bz2 |
fix highlight in the datetime example
-rw-r--r-- | Doc/tutorial/stdlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index c0c7da3..b11e8eb 100644 --- a/Doc/tutorial/stdlib.rst +++ b/Doc/tutorial/stdlib.rst @@ -179,7 +179,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 @@ -187,7 +187,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 |