From 499667354860defc1953440d955fe288da76cca6 Mon Sep 17 00:00:00 2001 From: Zhiyuan Chen Date: Thu, 19 Oct 2023 06:46:30 +0000 Subject: [PATCH] remove Variable.__index__ to avoid error in os.stat Signed-off-by: Zhiyuan Chen --- chanfig/variable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chanfig/variable.py b/chanfig/variable.py index c2e21b6a..c68945f6 100644 --- a/chanfig/variable.py +++ b/chanfig/variable.py @@ -359,8 +359,8 @@ def __ge__(self, other) -> bool: def __gt__(self, other) -> bool: return self.value > self._get_value(other) - def __index__(self): - return self.value.__index__() + # def __index__(self): + # return self.value.__index__() def __invert__(self): return ~self.value