diff --git a/nc-api b/nc-api index dad7124..e03589e 100755 --- a/nc-api +++ b/nc-api @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # TODO: # - Add support for TTL, MXPref, ... @@ -86,7 +86,7 @@ def config_load(pathname): if not os.path.exists(pathname): raise RuntimeError("Configuration file %s does not exist" % (pathname)) st = os.stat(pathname) - if (st.st_mode & 077) != 0: + if (st.st_mode & 0o077) != 0: raise RuntimeError("Configuration file %s has incorrect permissions" % (pathname)) config['debug'] = False config['verbose'] = False