[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - publication.py:1.2

Fred L. Drake, Jr. fred at zope.com
Tue Mar 9 16:45:27 EST 2004


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

Modified Files:
	publication.py 
Log Message:
deal with the kind of cruft distutils generates in PKG-INFO


=== Packages/zpkgtools/zpkgtools/publication.py 1.1 => 1.2 ===
--- Packages/zpkgtools/zpkgtools/publication.py:1.1	Fri Mar  5 16:39:19 2004
+++ Packages/zpkgtools/zpkgtools/publication.py	Tue Mar  9 16:45:25 2004
@@ -129,6 +129,10 @@
     if headers and len(headers) > 1:
         raise ValueError("header %r can only be given once" % name)
     if headers:
-        return headers[0]
+        v = headers[0]
+        if v == "UNKNOWN":
+            return None
+        else:
+            return v
     else:
         return default




More information about the Zope-CVS mailing list