Commit a6161a93 authored by Jeryn Mathew's avatar Jeryn Mathew

Added fix for issue #312. Encountering Windows error [183] when installing...

Added fix for issue #312. Encountering Windows error [183] when installing gevent 1.0rc2+ on windows
parent 031dd5ab
......@@ -516,6 +516,8 @@ def atomic_write(filename, data):
f.flush()
os.fsync(f.fileno())
f.close()
if os.path.exists(filename):
os.unlink(filename)
os.rename(tmpname, filename)
dbg('Wrote %s bytes to %s', len(data), filename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment