From 0d2c121b0fc20ae38d4143c773a66b0770f008d2 Mon Sep 17 00:00:00 2001 From: Ralf Dragon Date: Fri, 13 Jan 2023 19:49:32 +0100 Subject: [PATCH] migrate deprecated readfp call io.StringIO can be used with read_file instead --- .../TXT/rootfs/opt/ftc/apps/system/store/store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/fischertechnik/TXT/rootfs/opt/ftc/apps/system/store/store.py b/board/fischertechnik/TXT/rootfs/opt/ftc/apps/system/store/store.py index aba43632b5..29ca13bda2 100755 --- a/board/fischertechnik/TXT/rootfs/opt/ftc/apps/system/store/store.py +++ b/board/fischertechnik/TXT/rootfs/opt/ftc/apps/system/store/store.py @@ -296,7 +296,7 @@ def install_zip(self,f): # is used as the apps local directory manifest_str = io.StringIO(z.read("manifest").decode('utf-8')) manifest = configparser.RawConfigParser() - manifest.readfp(manifest_str) + manifest.read_file(manifest_str) if not manifest.has_option('app', 'uuid'): return((False, QCoreApplication.translate("Error", "Manifest does not contain a UUID!"))) @@ -572,7 +572,7 @@ def onNetworkResult(self, result): # parse result packages_str = io.StringIO(result[1].decode('utf-8')) packages = configparser.RawConfigParser() - packages.readfp(packages_str) + packages.read_file(packages_str) apps = packages.sections() applist = [] for app in apps: