summaryrefslogtreecommitdiffstats
path: root/Modules/datetimemodule.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-10-20 14:01:56 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-10-20 14:01:56 (GMT)
commitf0dfc7ac5c2f76baaae0c3b45bc339281cfa2adc (patch)
tree9a4b5d8c9ea1dbbd4ead4b2990c77a997fb3905b /Modules/datetimemodule.c
parent4b17e3993b7d4ada586e66ad40a73e12e086645e (diff)
downloadcpython-f0dfc7ac5c2f76baaae0c3b45bc339281cfa2adc.zip
cpython-f0dfc7ac5c2f76baaae0c3b45bc339281cfa2adc.tar.gz
cpython-f0dfc7ac5c2f76baaae0c3b45bc339281cfa2adc.tar.bz2
Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751)
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r--Modules/datetimemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 0d553d4..3de1c65 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -899,7 +899,7 @@ offset_as_timedelta(PyObject *tzinfo, char *name, PyObject *tzinfoarg) {
* result. tzinfo must be an instance of the tzinfo class. If dst()
* returns None, call_dst returns 0 and sets *none to 1. If dst()
& doesn't return None or timedelta, TypeError is raised and this
- * returns -1. If dst() returns an invalid timedelta for for a UTC offset,
+ * returns -1. If dst() returns an invalid timedelta for a UTC offset,
* ValueError is raised and this returns -1. Else *none is set to 0 and
* the offset is returned (as an int # of minutes east of UTC).
*/
@@ -4818,7 +4818,7 @@ z' = z + z.d = 1:MM then, and z'.d=0, and z'.d - z.d = -60 != 0 so [8]
Because we know z.d said z was in daylight time (else [5] would have held and
we would have stopped then), and we know z.d != z'.d (else [8] would have held
-and we we have stopped then), and there are only 2 possible values dst() can
+and we would have stopped then), and there are only 2 possible values dst() can
return in Eastern, it follows that z'.d must be 0 (which it is in the example,
but the reasoning doesn't depend on the example -- it depends on there being
two possible dst() outcomes, one zero and the other non-zero). Therefore