[Secure-testing-commits] r16132 - lib/python
Florian Weimer
fw at alioth.debian.org
Sun Feb 13 21:48:31 UTC 2011
Author: fw
Date: 2011-02-13 21:48:28 +0000 (Sun, 13 Feb 2011)
New Revision: 16132
Modified:
lib/python/security_db.py
Log:
security_db.InsertError: remove type assert in constructor
Asserts on string types are a hopeless matter because the types change
between Python versions.
Modified: lib/python/security_db.py
===================================================================
--- lib/python/security_db.py 2011-02-13 21:15:35 UTC (rev 16131)
+++ lib/python/security_db.py 2011-02-13 21:48:28 UTC (rev 16132)
@@ -51,7 +51,6 @@
def __init__(self, errors):
assert len(errors) > 0, errors
assert type(errors) == types.ListType, errors
- assert type(errors[0])== types.StringType, errors
self.errors = errors
def __str__(self):
More information about the Secure-testing-commits
mailing list