From 9c769bc5a0b7fa82b214e567296f47030fe17b47 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Wed, 1 May 2024 15:36:16 +0200 Subject: [PATCH] Upgrade to Py3.7+ --- pwmt/menu.py | 2 +- pwmt/news.py | 2 +- pwmt/page.py | 4 ++-- pwmt/project.py | 10 +++++----- run.py | 1 - 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/pwmt/menu.py b/pwmt/menu.py index 6a64178..71eef52 100644 --- a/pwmt/menu.py +++ b/pwmt/menu.py @@ -12,7 +12,7 @@ def __init__(self, caption, endpoint="#"): def render(self): render_string = "" - if len(self.items) is not 0: + if len(self.items) != 0: render_string += ( '