• Andrew M. Kuchling's avatar
    Remove file-locking in MH.pack() method. · 8c456f3b
    Andrew M. Kuchling yazdı
    This change looks massive but it's mostly a re-indenting after
    removing some try...finally blocks.
    
    Also adds a test case that does a pack() while the mailbox is locked; this
    test would have turned up bugs in the original code on some platforms.
    
    In both nmh and GNU Mailutils' implementation of MH-format mailboxes,
    no locking is done of individual message files when renaming them.
    
    The original mailbox.py code did do locking, which meant that message
    files had to be opened.  This code was buggy on certain platforms
    (found through reading the code); there were code paths that closed
    the file object and then called _unlock_file() on it.
    
    Will backport to 25-maint once I see how the buildbots react to this patch.
    8c456f3b
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
PCbuild8 Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...