Remove trailing whitespace.
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 76b8470..570ed9e 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -266,10 +266,10 @@
considered to be true if and only if it isn't equal to ``timedelta(0)``.
Example usage:
-
+
>>> from datetime import timedelta
>>> year = timedelta(days=365)
- >>> another_year = timedelta(weeks=40, days=84, hours=23,
+ >>> another_year = timedelta(weeks=40, days=84, hours=23,
... minutes=50, seconds=600) # adds up to 365 days
>>> year == another_year
True
@@ -517,10 +517,10 @@
True
>>> my_birthday = date(today.year, 6, 24)
>>> if my_birthday < today:
- ... my_birthday = my_birthday.replace(year=today.year + 1)
+ ... my_birthday = my_birthday.replace(year=today.year + 1)
>>> my_birthday
datetime.date(2008, 6, 24)
- >>> time_to_birthday = abs(my_birthday - today)
+ >>> time_to_birthday = abs(my_birthday - today)
>>> time_to_birthday.days
202
@@ -1015,7 +1015,7 @@
>>> tt = dt.timetuple()
>>> for it in tt: # doctest: +SKIP
... print it
- ...
+ ...
2006 # year
11 # month
21 # day
@@ -1044,23 +1044,23 @@
... def __init__(self): # DST starts last Sunday in March
... d = datetime(dt.year, 4, 1) # ends last Sunday in October
... self.dston = d - timedelta(days=d.weekday() + 1)
- ... d = datetime(dt.year, 11, 1)
+ ... d = datetime(dt.year, 11, 1)
... self.dstoff = d - timedelta(days=d.weekday() + 1)
... def utcoffset(self, dt):
... return timedelta(hours=1) + self.dst(dt)
- ... def dst(self, dt):
+ ... def dst(self, dt):
... if self.dston <= dt.replace(tzinfo=None) < self.dstoff:
... return timedelta(hours=1)
... else:
... return timedelta(0)
... def tzname(self,dt):
... return "GMT +1"
- ...
+ ...
>>> class GMT2(tzinfo):
... def __init__(self):
- ... d = datetime(dt.year, 4, 1)
+ ... d = datetime(dt.year, 4, 1)
... self.dston = d - timedelta(days=d.weekday() + 1)
- ... d = datetime(dt.year, 11, 1)
+ ... d = datetime(dt.year, 11, 1)
... self.dstoff = d - timedelta(days=d.weekday() + 1)
... def utcoffset(self, dt):
... return timedelta(hours=1) + self.dst(dt)
@@ -1071,7 +1071,7 @@
... return timedelta(0)
... def tzname(self,dt):
... return "GMT +2"
- ...
+ ...
>>> gmt1 = GMT1()
>>> # Daylight Saving Time
>>> dt1 = datetime(2006, 11, 21, 16, 30, tzinfo=gmt1)
@@ -1092,7 +1092,7 @@
datetime.datetime(2006, 6, 14, 13, 0, tzinfo=<GMT1 object at 0x...>)
>>> dt2.utctimetuple() == dt3.utctimetuple()
True
-
+
.. _datetime-time:
@@ -1240,12 +1240,12 @@
return ``None`` or a string object.
Example:
-
+
>>> from datetime import time, tzinfo
>>> class GMT1(tzinfo):
... def utcoffset(self, dt):
- ... return timedelta(hours=1)
- ... def dst(self, dt):
+ ... return timedelta(hours=1)
+ ... def dst(self, dt):
... return timedelta(0)
... def tzname(self,dt):
... return "Europe/Prague"
@@ -1476,7 +1476,7 @@
:class:`tzinfo` subclasses; there are no ambiguities when using UTC, or any
other fixed-offset :class:`tzinfo` subclass (such as a class representing only
EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
-
+
.. _strftime-behavior:
@@ -1521,7 +1521,7 @@
The full set of format codes supported varies across platforms, because Python
calls the platform C library's :func:`strftime` function, and platform
-variations are common.
+variations are common.
The following is a list of all the format codes that the C standard (1989
version) requires, and these work on all platforms with a standard C