From 1a70ef7247b27964ad8f2a5f46b4ae66d27982a2 Mon Sep 17 00:00:00 2001 From: Tom Marshall Date: Sun, 16 May 2021 05:59:53 +0200 Subject: [PATCH] Update for python 3.x --- nc-api | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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