From dbeca9f785cb90139fde37ad0aaad61f70b5506f Mon Sep 17 00:00:00 2001 From: Brian May Date: Mon, 4 Mar 2019 17:21:45 +1100 Subject: Replace file() with open() for Python 3 compatability --- bin/mass-bug-filer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/mass-bug-filer') diff --git a/bin/mass-bug-filer b/bin/mass-bug-filer index e7dfb5e310..0c1d3d9dec 100755 --- a/bin/mass-bug-filer +++ b/bin/mass-bug-filer @@ -11,7 +11,7 @@ if len(sys.argv) < 3: print("usage: %s FILE PACKAGE..." % sys.argv[0], file=sys.stderr) sys.exit(1) -message_file = file(sys.argv[1]) +message_file = open(sys.argv[1]) packages = sys.argv[2:] cache = apt.Cache() -- cgit v1.2.3