[zpkg] SVN: zpkgtools/branches/philikon-toplevel-modules/zpkgtools/app.py minor nits

Fred L. Drake, Jr. fdrake at gmail.com
Thu Nov 3 10:57:31 EST 2005


Log message for revision 39874:
  minor nits

Changed:
  U   zpkgtools/branches/philikon-toplevel-modules/zpkgtools/app.py

-=-
Modified: zpkgtools/branches/philikon-toplevel-modules/zpkgtools/app.py
===================================================================
--- zpkgtools/branches/philikon-toplevel-modules/zpkgtools/app.py	2005-11-03 15:38:54 UTC (rev 39873)
+++ zpkgtools/branches/philikon-toplevel-modules/zpkgtools/app.py	2005-11-03 15:57:31 UTC (rev 39874)
@@ -214,7 +214,8 @@
             source = self.ip.loader.load(location)
             if os.path.isfile(source):
                 return ModuleComponent(resource, location, source, self.ip)
-            return PackageComponent(resource, location, source, self.ip)
+            else:
+                return PackageComponent(resource, location, source, self.ip)
         except zpkgtools.Error, e:
             self.error(str(e), rc=1)
 
@@ -388,7 +389,7 @@
 
 
 class PackageComponent:
-    """Regular Python package
+    """Regular Python package or non-code component.
     """
 
     def __init__(self, name, url, source, ip):



More information about the zpkg mailing list