plugins/python/example*.py: pep8 fixes (mainly line too long)
This commit is contained in:

committed by
Todd C. Miller

parent
0f3631cc08
commit
45d2638571
@@ -1,7 +1,7 @@
|
||||
__init__ @ SRC_DIR/example_debugging.py:45 calls C function:
|
||||
__init__ @ SRC_DIR/example_debugging.py:56 calls C function:
|
||||
sudo.debug was called with arguments: (<DEBUG.ERROR: 2>, 'My demo purpose plugin shows this ERROR level debug message')
|
||||
__init__ @ SRC_DIR/example_debugging.py:48 calls C function:
|
||||
__init__ @ SRC_DIR/example_debugging.py:61 calls C function:
|
||||
sudo.debug was called with arguments: (<DEBUG.INFO: 6>, 'My demo purpose plugin shows this INFO level debug message')
|
||||
__init__ @ SRC_DIR/example_debugging.py:58 calls C function:
|
||||
__init__ @ SRC_DIR/example_debugging.py:74 calls C function:
|
||||
sudo.options_as_dict was called with arguments: (('ModulePath=SRC_DIR/example_debugging.py', 'ClassName=DebugDemoPlugin'),)
|
||||
sudo.options_as_dict returned result: {'ModulePath': 'SRC_DIR/example_debugging.py', 'ClassName': 'DebugDemoPlugin'}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
__init__ @ SRC_DIR/example_debugging.py:45 debugs:
|
||||
__init__ @ SRC_DIR/example_debugging.py:56 debugs:
|
||||
My demo purpose plugin shows this ERROR level debug message
|
||||
__init__ @ SRC_DIR/example_debugging.py:48 debugs:
|
||||
__init__ @ SRC_DIR/example_debugging.py:61 debugs:
|
||||
My demo purpose plugin shows this INFO level debug message
|
||||
|
@@ -1,7 +1,7 @@
|
||||
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__
|
||||
File "SRC_DIR/example_io_plugin.py", line 61, in __init__
|
||||
self._open_log_file(path.join(log_path, "sudo.log"))
|
||||
File "SRC_DIR/example_io_plugin.py", line 132, in _open_log_file
|
||||
File "SRC_DIR/example_io_plugin.py", line 134, in _open_log_file
|
||||
self._log_file = open(log_path, "a")
|
||||
|
||||
|
Reference in New Issue
Block a user