git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
041b755
)
fix for windows raising a WindowsError exception when rename fails
author
Forrest Voight
<forrest@forre.st>
Tue, 8 May 2012 17:42:12 +0000 (13:42 -0400)
committer
Forrest Voight
<forrest@forre.st>
Tue, 8 May 2012 17:56:28 +0000 (13:56 -0400)
p2pool/web.py
patch
|
blob
|
history
diff --git
a/p2pool/web.py
b/p2pool/web.py
index
5338e15
..
0ed0af8
100644
(file)
--- a/
p2pool/web.py
+++ b/
p2pool/web.py
@@
-39,7
+39,7
@@
def _atomic_write(filename, data):
pass
try:
os.rename(filename + '.new', filename)
- except os.error: # windows can't overwrite
+ except: # XXX windows can't overwrite
os.remove(filename)
os.rename(filename + '.new', filename)