diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-13 04:55:24 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-13 04:55:24 (GMT) |
commit | 752abd0d3cc66f84f551650b8424248b202a16a4 (patch) | |
tree | f5302f8a246115f3f61a1414a94c8d2ce12a3a01 /Doc/library/datetime.rst | |
parent | 8321f978918e3ae4de18672770c6504dcae82343 (diff) | |
download | cpython-752abd0d3cc66f84f551650b8424248b202a16a4.zip cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.gz cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.bz2 |
Convert a lot of print statements to print functions in docstrings,
documentation, and unused/rarely used functions.
Diffstat (limited to 'Doc/library/datetime.rst')
-rw-r--r-- | Doc/library/datetime.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index e4aac1a..9401b38 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -532,7 +532,7 @@ Example of working with :class:`date`: datetime.date(2002, 3, 11) >>> t = d.timetuple() >>> for i in t: # doctest: +SKIP - ... print i + ... print(i) 2002 # year 3 # month 11 # day @@ -544,7 +544,7 @@ Example of working with :class:`date`: -1 >>> ic = d.isocalendar() >>> for i in ic: # doctest: +SKIP - ... print i + ... print(i) 2002 # ISO year 11 # ISO week number 1 # ISO day number ( 1 = Monday ) @@ -1011,7 +1011,7 @@ Examples of working with datetime objects: >>> # Using datetime.timetuple() to get tuple of all attributes >>> tt = dt.timetuple() >>> for it in tt: # doctest: +SKIP - ... print it + ... print(it) ... 2006 # year 11 # month @@ -1025,7 +1025,7 @@ Examples of working with datetime objects: >>> # Date in ISO format >>> ic = dt.isocalendar() >>> for it in ic: # doctest: +SKIP - ... print it + ... print(it) ... 2006 # ISO year 47 # ISO week |