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