minor adjustment suggested by Peter Gephardt
This commit is contained in:
parent
2afbf96f53
commit
a5f1fd09eb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue