diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -63,7 +63,7 @@ def _lwrite(path, content): | |||
| 63 | fd.close() | 63 | fd.close() |
| 64 | 64 | ||
| 65 | try: | 65 | try: |
| 66 | os.rename(lock, path) | 66 | platform_utils.rename(lock, path) |
| 67 | except OSError: | 67 | except OSError: |
| 68 | os.remove(lock) | 68 | os.remove(lock) |
| 69 | raise | 69 | raise |
| @@ -2198,7 +2198,7 @@ class Project(object): | |||
| 2198 | 2198 | ||
| 2199 | if os.path.exists(tmpPath): | 2199 | if os.path.exists(tmpPath): |
| 2200 | if curlret == 0 and self._IsValidBundle(tmpPath, quiet): | 2200 | if curlret == 0 and self._IsValidBundle(tmpPath, quiet): |
| 2201 | os.rename(tmpPath, dstPath) | 2201 | platform_utils.rename(tmpPath, dstPath) |
| 2202 | return True | 2202 | return True |
| 2203 | else: | 2203 | else: |
| 2204 | os.remove(tmpPath) | 2204 | os.remove(tmpPath) |
