From: Ezio Melotti Date: Thu, 12 Nov 2009 10:38:55 +0000 (+0000) Subject: fix highlight in the datetime example X-Git-Tag: v3.2a1~2207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87e5d347ee10d6c98849609abb6553d6844dbb34;p=python fix highlight in the datetime example --- diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index de3325967c..98702a55c1 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