From a8608c158dd6b6cb130cfac078676d81aed597b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 29 Dec 2017 15:22:03 +0100 Subject: [PATCH] intro/magic: Don't inherit from object in Python 3 Let's keep the code Python 3 only not to bother readers with Legacy Python --- lessons/intro/magic/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lessons/intro/magic/index.md b/lessons/intro/magic/index.md index 8b9fbaed6a..effcde0561 100644 --- a/lessons/intro/magic/index.md +++ b/lessons/intro/magic/index.md @@ -486,7 +486,7 @@ Funguje podobně jako `@property`, jen se výsledek vypočítá pouze jednou a u Při dalším přístupu k atributu už se použije uložená hodnota. ```python -class reify(object): +class reify: def __init__(self, func): self.func = func