diff options
Diffstat (limited to 'setuptools/command/upload.py')
-rwxr-xr-x | setuptools/command/upload.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index 7ac08c22..1f49745e 100755 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -83,7 +83,9 @@ class upload(Command): dry_run=self.dry_run) # Fill in the data - content = open(filename,'rb').read() + f = open(filename,'rb') + content = f.read() + f.close() basename = os.path.basename(filename) comment = '' if command=='bdist_egg' and self.distribution.has_ext_modules(): |