Fix bug in example 5 found by Reinhold Birkenfeld.

This commit is contained in:
Guido van Rossum 2005-05-04 21:00:46 +00:00
parent 82b1510121
commit fa5f960327
1 changed files with 5 additions and 4 deletions

View File

@ -568,7 +568,7 @@ Examples
Used as follows: Used as follows:
block locking_opening("/etc/passwd", myLock) as f: block locking_opening(myLock, "/etc/passwd") as f:
for line in f: for line in f:
print line.rstrip() print line.rstrip()
@ -652,9 +652,10 @@ Acknowledgements
Booth, Fredrik Lundh, Greg Ewing, Holger Krekel, Jason Diamond, Booth, Fredrik Lundh, Greg Ewing, Holger Krekel, Jason Diamond,
Jim Jewett, Josiah Carlson, Ka-Ping Yee, Michael Chermside, Jim Jewett, Josiah Carlson, Ka-Ping Yee, Michael Chermside,
Michael Hudson, Neil Schemenauer, Nick Coghlan, Paul Moore, Michael Hudson, Neil Schemenauer, Nick Coghlan, Paul Moore,
Phillip Eby, Raymond Hettinger, Samuele Pedroni, Shannon Behrens, Phillip Eby, Raymond Hettinger, Reinhold Birkenfeld, Samuele
Skip Montanaro, Steven Bethard, Terry Reedy, Tim Delaney, Aahz, Pedroni, Shannon Behrens, Skip Montanaro, Steven Bethard, Terry
and others. Thanks all for the valuable contributions! Reedy, Tim Delaney, Aahz, and others. Thanks all for the valuable
contributions!
References References