summaryrefslogtreecommitdiffstats
path: root/lib/python/security_db.py
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2018-08-20 17:25:49 +1000
committerBrian May <brian@linuxpenguins.xyz>2019-02-18 17:31:57 +1100
commitda522d835635036b1b6ee9650efb68610256916a (patch)
treec82926bbd6ac7a33cf83e00843accebd97a09e1c /lib/python/security_db.py
parent3d296da5ed80bbe0b17c6ece33a454895b20c846 (diff)
Replace `abc` with repr(abc)
Diffstat (limited to 'lib/python/security_db.py')
-rw-r--r--lib/python/security_db.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 3c75fa7f5e..72a4308668 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -627,7 +627,7 @@ class DB:
st = os.stat(filename)
# The "1" is a version number which can be used to trigger a
# re-read if the code has changed in an incompatible way.
- return `(st.st_size, st.st_ino, st.st_mtime, 1)`
+ return repr((st.st_size, st.st_ino, st.st_mtime, 1))
def _parseFile(self, cursor, filename):
current_print = self.filePrint(filename)
@@ -657,7 +657,7 @@ class DB:
if match is None:
raise SyntaxError(('package %s references '
+ 'invalid source package %s') %
- (pkg_name, `contents`))
+ (pkg_name, repr(contents)))
(pkg_source, pkg_source_version) = match.groups()
elif name == "Architecture":
pkg_arch = contents
@@ -1173,7 +1173,7 @@ class DB:
result.append("%s:%d: unstable: %s"
% (b.source_file, b.source_line, unstable_ver))
result.append("%s:%d: release %s: %s"
- % (b.source_file, b.source_line, `rel`, rel_ver))
+ % (b.source_file, b.source_line, repr(rel), rel_ver))
if self.verbose:
print(" checking source packages")

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