diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-08-06 12:26:01 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-08-06 12:26:01 +0200 |
commit | a23a859dc415d55750181b791f3e8486b6a0a490 (patch) | |
tree | e81550d059e13d98b9f79ed15e691b0d811aa9d9 /lib | |
parent | 6d7cc9f17915255c50d257d327ccaf4c95afef94 (diff) |
security_db: don't encode debsecan data
It's already a bytes object.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/security_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py index 3e6b4220b9..e8167f3187 100644 --- a/lib/python/security_db.py +++ b/lib/python/security_db.py @@ -1754,7 +1754,7 @@ class DB: """Returns the debsecan data item NAME.""" for (data,) in self.cursor().execute( "SELECT data FROM debsecan_data WHERE name = ?", (name,)): - return base64.decodestring(data.encode('utf-8')) + return base64.decodestring(data) else: return None |