From 5d475701e6a2ff056b05d3086ce86d1dfd38252b Mon Sep 17 00:00:00 2001 From: Bandie Date: Sat, 13 Nov 2021 16:14:15 +0100 Subject: [PATCH] Update to Raspbian 11; using python3 --- foodoord_oben | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/foodoord_oben b/foodoord_oben index 1f982a7..3859efa 100755 --- a/foodoord_oben +++ b/foodoord_oben @@ -1,18 +1,17 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # vim: ts=2 sw=2 et import os import stat import time import pifacedigitalio -import urllib2 import signal import sys import grp -from ConfigParser import SafeConfigParser +from configparser import ConfigParser #Read config -parser = SafeConfigParser() +parser = ConfigParser() parser.read('/etc/foodoord.conf') doorapi = parser.get('doorstatus', 'status_url')