[elbe-devel] [PATCH 02/28] pylint efilesystem: add missing () to close

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 11:28:56 CEST 2018


pylint complains, that the statement does not have en effect.
we want to close the file.

call the function.

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 9ea4c989..e70de442 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -128,7 +128,7 @@ class ElbeFilesystem(Filesystem):
 
         version_file = self.open("etc/updated_version", "w")
         version_file.write(xml.text("/project/version"))
-        version_file.close
+        version_file.close()
 
         elbe_base = self.open("etc/elbe_base.xml", "wb")
         xml.xml.write(elbe_base)
-- 
2.11.0




More information about the elbe-devel mailing list