From 0ed753f1dc4e15250f71dc36c096ddce12f1e98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Mon, 13 Jan 2020 21:00:09 +0100 Subject: [PATCH] fix for v2.2.8 --- README.md | 3 ++- satella/coding/structures/immutable.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f591be91..839bdfc7 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Satella is a zero-requirements Python 3.5+ library for writing server applications, especially those dealing with mundane but useful things. It also runs on PyPy. -See [LICENSE](LICENSE) for text of the license. +See [LICENSE](LICENSE) for text of the license. This library may contain +code taken from elsewhere on the internets, so this is copyright (c) respective authors. **satella 1.0 remains in [maintenance mode](https://github.com/piotrmaslanka/satella/tree/satella1.0)** diff --git a/satella/coding/structures/immutable.py b/satella/coding/structures/immutable.py index b06a92d4..bcc08203 100644 --- a/satella/coding/structures/immutable.py +++ b/satella/coding/structures/immutable.py @@ -10,7 +10,7 @@ class ImmutableMetaType(ABCMeta): return p -class Immutable: +class Immutable(metaclass=ImmutableMetaType): """ A mix-in to make your classes immutable. @@ -20,7 +20,6 @@ class Immutable: >>> def __init__(self): >>> self.attribute = 'value' """ - __metaclass__ = ImmutableMetaType __locked_for_writes = False -- GitLab