]> granicus.if.org Git - python/commitdiff
Removed blurb admonishing users to raise an exception if the datetime
authorTim Peters <tim.peters@gmail.com>
Tue, 24 Dec 2002 16:34:13 +0000 (16:34 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 24 Dec 2002 16:34:13 +0000 (16:34 +0000)
argument to a tzinfo method doesn't have a matching tzinfo member.

Doc/lib/libdatetime.tex

index b061d90853947708732e6a90edb71e29fa103cfd..f29db5b7b3fc6e8df447bbe88d70ee052aacf31a 100644 (file)
@@ -767,8 +767,7 @@ implement all of them.  The methods are called by a \class{datetimetz}
 or \class{timetz} object, passing itself as the argument.  A
 \class{tzinfo} subclass's methods should be prepared to accept a dt
 argument of \code{None} or of type \class{timetz} or
-\class{datetimetz}.  If is not \code{None}, and dt.tzinfo is not
-\code{None} and not equal to self, an exception should be raised.
+\class{datetimetz}.
 
   - utcoffset(dt)
     Return offset of local time from UTC, in minutes east of UTC.  If