summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2011-02-13 21:48:28 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2011-02-13 21:48:28 +0000
commit205280d65b6e0a95e50c5a1d7e64f05f9ebda2bf (patch)
tree6acfe9d31ca7a05172a358452bf0911520b4c1cb /lib
parentc8a5fb822ee4edd40e9f4ecec1fd0ff88c8c685f (diff)
security_db.InsertError: remove type assert in constructor
Asserts on string types are a hopeless matter because the types change between Python versions. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@16132 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/security_db.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index fc82c81dcd..67683e8863 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -51,7 +51,6 @@ class InsertError(Exception):
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):

© 2014-2024 Faster IT GmbH | imprint | privacy policy