minor adjustment suggested by Peter Gephardt

This commit is contained in:
Fred Drake 2006-04-26 05:19:39 +00:00
parent 2afbf96f53
commit a5f1fd09eb
1 changed files with 1 additions and 1 deletions

View File

@ -4771,7 +4771,7 @@ for sending mail:
\begin{verbatim}
>>> import urllib2
>>> for line in urllib2.urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl'):
... if 'EST' in line: # look for Eastern Standard Time
... if 'EST' in line or 'EDT' in line: # look for Eastern Time
... print line
<BR>Nov. 25, 09:43:32 PM EST