From 64fec6e012f3e840d1199a6dc274b695580d41f9 Mon Sep 17 00:00:00 2001 From: Aaron Heise Date: Sat, 18 Feb 2023 08:10:26 -0600 Subject: [PATCH] Remove some stuff blocking older versions --- rnsh/process.py | 1 + rnsh/rnslogging.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rnsh/process.py b/rnsh/process.py index 6e1ca16..cecf512 100644 --- a/rnsh/process.py +++ b/rnsh/process.py @@ -20,6 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +from __future__ import annotations import asyncio import contextlib import copy diff --git a/rnsh/rnslogging.py b/rnsh/rnslogging.py index f6b0627..247d30f 100644 --- a/rnsh/rnslogging.py +++ b/rnsh/rnslogging.py @@ -26,7 +26,7 @@ import sys import termios import rnsh.process as process from logging import Handler, getLevelName -from types import GenericAlias +# from types import GenericAlias from typing import Any import RNS @@ -101,7 +101,7 @@ class RnsHandler(Handler): level = getLevelName(self.level) return '<%s (%s)>' % (self.__class__.__name__, level) - __class_getitem__ = classmethod(GenericAlias) + # __class_getitem__ = classmethod(GenericAlias) log_format = '%(name)-30s %(message)s [%(threadName)s]'