diff options
author | Brian May <brian@linuxpenguins.xyz> | 2019-03-04 17:21:45 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2019-03-04 17:31:32 +1100 |
commit | 97eb61a8b4bb9cd587203f34be5617af4370a152 (patch) | |
tree | 23cf18afa6331ae295b5f3c9ad2ff20ee46e24a0 /bin/check-syntax | |
parent | b10f7e889286a6be2330848c113d48ddf070cc24 (diff) |
Replace file() with open() for Python 3 compatability
Diffstat (limited to 'bin/check-syntax')
-rwxr-xr-x | bin/check-syntax | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/check-syntax b/bin/check-syntax index 11a48059eb..2daaeaefde 100755 --- a/bin/check-syntax +++ b/bin/check-syntax @@ -49,7 +49,7 @@ def construct(c, name): f = sys.stdin name = '<stdin>' else: - f = file(name) + f = open(name) return c(name, f) sources = debian_support.getconfig()["sources"] |