# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1497699988 -19800 # Node ID c425b678df7c9ebeae2cf8cf982d20add0626700 # Parent 799db2af824cabf4096ab30c275628f98afcc35c py3: use open() instead of file() constructor The file() constructor has been removed in python 3. diff -r 799db2af824c -r c425b678df7c tests/f --- a/tests/f Sat Jun 17 15:29:26 2017 +0530 +++ b/tests/f Sat Jun 17 17:16:28 2017 +0530 @@ -51,7 +51,7 @@ if opts.type: facts.append('file') if opts.hexdump or opts.dump or opts.md5: - content = file(f, 'rb').read() + content = open(f, 'rb').read() elif islink: if opts.type: facts.append('link')