aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/upload_docs.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r--setuptools/command/upload_docs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index 98fb7233..1d5a7445 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -105,7 +105,9 @@ class upload_docs(upload):
shutil.rmtree(tmp_dir)
def upload_file(self, filename):
- content = open(filename, 'rb').read()
+ f = open(filename, 'rb')
+ content = f.read()
+ f.close()
meta = self.distribution.metadata
data = {
':action': 'doc_upload',