[Secure-testing-commits] r1976 - lib/python

Florian Weimer fw at costa.debian.org
Wed Sep 14 13:21:12 UTC 2005


Author: fw
Date: 2005-09-14 13:21:11 +0000 (Wed, 14 Sep 2005)
New Revision: 1976

Modified:
   lib/python/debian_support.py
Log:
lib/python/debian_support.py (Version):
  Add assert for empty version string.


Modified: lib/python/debian_support.py
===================================================================
--- lib/python/debian_support.py	2005-09-14 12:45:19 UTC (rev 1975)
+++ lib/python/debian_support.py	2005-09-14 13:21:11 UTC (rev 1976)
@@ -58,6 +58,7 @@
     def __init__(self, version):
         """Creates a new Version object."""
         assert type(version) == types.StringType, `version`
+        assert version <> ""
         self.__asString = version
         self.__parsed = self.__parse(version)
 




More information about the Secure-testing-commits mailing list