Remove some stuff blocking older versions

This commit is contained in:
Aaron Heise 2023-02-18 08:10:26 -06:00
parent acc217df90
commit 64fec6e012
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
from __future__ import annotations
import asyncio import asyncio
import contextlib import contextlib
import copy import copy

View File

@ -26,7 +26,7 @@ import sys
import termios import termios
import rnsh.process as process import rnsh.process as process
from logging import Handler, getLevelName from logging import Handler, getLevelName
from types import GenericAlias # from types import GenericAlias
from typing import Any from typing import Any
import RNS import RNS
@ -101,7 +101,7 @@ class RnsHandler(Handler):
level = getLevelName(self.level) level = getLevelName(self.level)
return '<%s (%s)>' % (self.__class__.__name__, level) return '<%s (%s)>' % (self.__class__.__name__, level)
__class_getitem__ = classmethod(GenericAlias) # __class_getitem__ = classmethod(GenericAlias)
log_format = '%(name)-30s %(message)s [%(threadName)s]' log_format = '%(name)-30s %(message)s [%(threadName)s]'