summaryrefslogtreecommitdiffstats
path: root/lib/python/security_db.py
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2019-03-04 17:21:45 +1100
committerBrian May <brian@linuxpenguins.xyz>2019-03-04 17:31:32 +1100
commitdbeca9f785cb90139fde37ad0aaad61f70b5506f (patch)
treefaa44ee8494b4adb0d54a3f990cc7f1b2a4c16f0 /lib/python/security_db.py
parenta0eedec07ab55e1a7ccf3b0892fe991150cef5b1 (diff)
Replace file() with open() for Python 3 compatability
Diffstat (limited to 'lib/python/security_db.py')
-rw-r--r--lib/python/security_db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/security_db.py b/lib/python/security_db.py
index 72a4308668..5b94e74774 100644
--- a/lib/python/security_db.py
+++ b/lib/python/security_db.py
@@ -1921,7 +1921,7 @@ class DB:
"""Reads a file of removed packages and stores it in the database.
The original contents of the removed_packages table is preserved."""
- f = file(filename)
+ f = open(filename)
re_package = re.compile(r'^\s*([a-z0-9]\S+)\s*$')

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