diff options
| author | bwarsaw | 2007-01-05 06:47:39 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-01-05 06:47:39 +0000 |
| commit | 9af2533eb89e48683c049c5007737f7e94bbcdc1 (patch) | |
| tree | 54853dcccee453eae60916af4e612b3004cc736f /Mailman/LockFile.py | |
| parent | d7da90ebc8aeee180ba470c002f7e37ef7df1089 (diff) | |
| download | mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.gz mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.zst mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.zip | |
Diffstat (limited to 'Mailman/LockFile.py')
| -rw-r--r-- | Mailman/LockFile.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Mailman/LockFile.py b/Mailman/LockFile.py index 06d5c5f8e..d13699ec4 100644 --- a/Mailman/LockFile.py +++ b/Mailman/LockFile.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2006 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2007 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -369,15 +369,11 @@ class LockFile: def _write(self): # Make sure it's group writable - oldmask = os.umask(002) - fp = None + fp = open(self._tmpfname, 'w') try: - fp = open(self._tmpfname, 'w') fp.write(self._tmpfname) finally: - if fp: - fp.close() - os.umask(oldmask) + fp.close() def _read(self): try: |
