summaryrefslogtreecommitdiffstats
path: root/bin/check-syntax
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
commit000e95f7f9466079740357c742c8cfa37f79599a (patch)
treef25356d694247cad9a3e5fa86f0b51f86c62aa31 /bin/check-syntax
parent6689e227dbc2827410dfa66e40c25cbdaf3dce30 (diff)
Replace file() with open() for Python 3 compatability
Diffstat (limited to 'bin/check-syntax')
-rwxr-xr-xbin/check-syntax2
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"]

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