[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - include.py:1.6

Fred L. Drake, Jr. fred at zope.com
Tue Mar 30 10:28:10 EST 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv16427

Modified Files:
	include.py 
Log Message:
inline simple helper method used only once


=== Packages/zpkgtools/zpkgtools/include.py 1.5 => 1.6 ===
--- Packages/zpkgtools/zpkgtools/include.py:1.5	Tue Mar 30 10:09:57 2004
+++ Packages/zpkgtools/zpkgtools/include.py	Tue Mar 30 10:28:08 2004
@@ -167,7 +167,8 @@
         already exist.
         """
         self.copyTree(self.source, self.destination)
-        self.addIncludes()
+        for relpath, source in self.includes.iteritems():
+            self.addSingleInclude(relpath, source)
 
     def copyTree(self, source, destination):
         """Populate the destination tree from the source tree.
@@ -215,11 +216,6 @@
                 os.mkdir(destname)
                 shutil.copymode(srcname, destname)
                 shutil.copystat(srcname, destname)
-
-    def addIncludes(self):
-        """Add files and directories based on the specification."""
-        for relpath, source in self.includes.iteritems():
-            self.addSingleInclude(relpath, source)
 
     def addSingleInclude(self, relpath, source):
         dirname, basename = os.path.split(relpath)




More information about the Zope-CVS mailing list