[Spambayes-checkins] spambayes setup.py,1.31,1.32

Tony Meyer anadelonbrin at users.sourceforge.net
Mon Dec 6 04:04:19 CET 2004


Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21289

Modified Files:
	setup.py 
Log Message:
Fix bug found by Barry.

Don't re-use global variable names!

Index: setup.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/setup.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** setup.py	30 Nov 2004 23:00:11 -0000	1.31
--- setup.py	6 Dec 2004 03:04:17 -0000	1.32
***************
*** 75,85 ****
  
  import distutils.command.sdist
! parent = distutils.command.sdist.sdist
! class sdist(parent):
      """Like the standard sdist, but also prints out MD5 checksums and sizes
      for the created files, for convenience."""
      def run(self):
          import md5
!         retval = parent.run(self)
          for archive in self.get_archive_files():
              data = file(archive, "rb").read()
--- 75,85 ----
  
  import distutils.command.sdist
! sdist_parent = distutils.command.sdist.sdist
! class sdist(sdist_parent):
      """Like the standard sdist, but also prints out MD5 checksums and sizes
      for the created files, for convenience."""
      def run(self):
          import md5
!         retval = sdist_parent.run(self)
          for archive in self.get_archive_files():
              data = file(archive, "rb").read()



More information about the Spambayes-checkins mailing list