Source

distribute / setuptools / command / upload.py

The branch 'setuptools-0.6' does not exist.
Diff from to

setuptools/command/upload.py

                   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():