plugins/python/example_io_plugin: close the file at destroy
to avoid warning of debug python build.
This commit is contained in:

committed by
Todd C. Miller

parent
a3a7630ff4
commit
4110800c14
@@ -2,6 +2,6 @@ Example sudo python plugin will log to /some/not/writable/directory/sudo.log
|
||||
Traceback:
|
||||
File "SRC_DIR/example_io_plugin.py", line 60, in __init__
|
||||
self._open_log_file(path.join(log_path, "sudo.log"))
|
||||
File "SRC_DIR/example_io_plugin.py", line 131, in _open_log_file
|
||||
File "SRC_DIR/example_io_plugin.py", line 132, in _open_log_file
|
||||
self._log_file = open(log_path, "a")
|
||||
|
||||
|
Reference in New Issue
Block a user