[elbe-devel] [PATCH 05/28] pylint: efilesystem: use proper name for destructor.
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 22 11:28:59 CEST 2018
__delete__ requires a parameter. its called for "del x[y]"
rename __delete__ to __del__, which is the correct name for destructor
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/efilesystem.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/efilesystem.py b/elbepack/efilesystem.py
index da4bdd21..aef11415 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -174,7 +174,7 @@ class ChRootFilesystem(ElbeFilesystem):
self.cwd = os.open("/", os.O_RDONLY)
self.inchroot = False
- def __delete__(self):
+ def __del__(self):
os.close(self.cwd)
def __enter__(self):
--
2.11.0
More information about the elbe-devel
mailing list