[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Fix bug resulting from use of fd.close() instead of os.close(fd).
commit f1c8d5204bfc71cdc3ddee1fd135856ec9ec1c56
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Tue Nov 5 08:09:19 2013 +0000
Fix bug resulting from use of fd.close() instead of os.close(fd).
---
lib/bridgedb/crypto.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bridgedb/crypto.py b/lib/bridgedb/crypto.py
index 70e9ee1..d67966d 100644
--- a/lib/bridgedb/crypto.py
+++ b/lib/bridgedb/crypto.py
@@ -50,7 +50,7 @@ def getKey(filename):
fd = os.open(filename, flags, 0400)
os.write(fd, key)
os.fsync(fd)
- fd.close()
+ os.close(fd)
else:
logging.debug("getKey(): Secret key file found. Loading...")
key = fh.read()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits