Dirk Meyer wrote:
> Duncan Webb wrote:
>> Author: duncan
>> Date: Wed Oct 25 07:10:34 2006
>> New Revision: 8472
>>
>> Modified:
>>    branches/rel-1/freevo/src/helpers/rssPeriodic.py
>>
>> Log:
>> Buf fix, didn't detect EOF.
>>
>>
>> Modified: branches/rel-1/freevo/src/helpers/rssPeriodic.py
>> ==============================================================================
>> --- branches/rel-1/freevo/src/helpers/rssPeriodic.py (original)
>> +++ branches/rel-1/freevo/src/helpers/rssPeriodic.py Wed Oct 25 07:10:34 2006
>> @@ -71,6 +71,8 @@
>>         downloadedUrls=pickle.load(open(cacheFile,"r"))
>>      except IOError:
>>         return False
>> +    except EOFError:
>> +       return False
> 
> WTF is that? I never saw an EOF exception before. Can this only happen
> in pickle?
> 
I've done a quick grep through the Python-2.4.3 sources, it looks like
it's being used quite frequently.

# grep -rl 'raise *EOFError' .
./Python/bltinmodule.c
./Demo/rpc/xdr.py
./Demo/rpc/rpc.py
./Demo/threads/Generator.py
./Demo/metaclasses/Synch.py
./Tools/bgen/bgen/scantools.py
./Lib/idlelib/PyShell.py
./Lib/idlelib/rpc.py
./Lib/test/test_bz2.py
./Lib/getpass.py
./Lib/sunau.py
./Lib/plat-irix5/flp.py
./Lib/plat-irix6/flp.py
./Lib/gzip.py
./Lib/ftplib.py
./Lib/nntplib.py
./Lib/chunk.py
./Lib/aifc.py
./Lib/telnetlib.py
./Lib/mailbox.py
./Lib/plat-mac/gensuitemodule.py
./Lib/xdrlib.py
./Lib/pickle.py


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to