diff options
author | Guido van Rossum <guido@python.org> | 1995-10-07 19:25:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-10-07 19:25:25 (GMT) |
commit | f6d69289a3f4a57302f0ab6aaf827c46fee8104c (patch) | |
tree | 3e6410b72ba6a02b0f222e2945f6b480ead8b466 /Demo | |
parent | 903f487684c25940c35f9b474c96e309842828c0 (diff) | |
download | cpython-f6d69289a3f4a57302f0ab6aaf827c46fee8104c.zip cpython-f6d69289a3f4a57302f0ab6aaf827c46fee8104c.tar.gz cpython-f6d69289a3f4a57302f0ab6aaf827c46fee8104c.tar.bz2 |
mac robustness: default timezone, unlink target before rename
Diffstat (limited to 'Demo')
-rwxr-xr-x | Demo/pdist/cvslib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Demo/pdist/cvslib.py b/Demo/pdist/cvslib.py index 96cc785..cf305c9 100755 --- a/Demo/pdist/cvslib.py +++ b/Demo/pdist/cvslib.py @@ -6,6 +6,8 @@ import time import md5 import fnmatch +if not hasattr(time, 'timezone'): + time.timezone = 0 class File: @@ -282,6 +284,8 @@ class CVS: def backup(self, file): if os.path.isfile(file): bfile = file + '~' + try: os.unlink(bfile) + except os.error: pass os.rename(file, bfile) def ignored(self, file): |