pylint 2.8 introduces consider-using-with error, suggesting to use the 'with' block statement when possible. Modify all subprocess.Popen call to use the 'with' statement, except the one in __init__ of QemuIoInteractive class, since it is assigned to a class field and used in other methods. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Message-Id: <20210510190449.65948-1-eesposit@redhat.com> [mreitz: Disable bad-option-value warning in the iotests' pylintrc, so that disabling consider-using-with in QemuIoInteractive will not produce a warning in pre-2.8 pylint versions] Signed-off-by: Max Reitz <mreitz@redhat.com>
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| [MESSAGES CONTROL]
 | |
| 
 | |
| # Disable the message, report, category or checker with the given id(s). You
 | |
| # can either give multiple identifiers separated by comma (,) or put this
 | |
| # option multiple times (only on the command line, not in the configuration
 | |
| # file where it should appear only once). You can also use "--disable=all" to
 | |
| # disable everything first and then reenable specific checks. For example, if
 | |
| # you want to run only the similarities checker, you can use "--disable=all
 | |
| # --enable=similarities". If you want to run only the classes checker, but have
 | |
| # no Warning level messages displayed, use "--disable=all --enable=classes
 | |
| # --disable=W".
 | |
| disable=invalid-name,
 | |
|         no-else-return,
 | |
|         too-few-public-methods,
 | |
|         too-many-arguments,
 | |
|         too-many-branches,
 | |
|         too-many-lines,
 | |
|         too-many-locals,
 | |
|         too-many-public-methods,
 | |
|         # pylint warns about Optional[] etc. as unsubscriptable in 3.9
 | |
|         unsubscriptable-object,
 | |
|         # Sometimes we need to disable a newly introduced pylint warning.
 | |
|         # Doing so should not produce a warning in older versions of pylint.
 | |
|         bad-option-value,
 | |
|         # These are temporary, and should be removed:
 | |
|         missing-docstring,
 | |
|         too-many-return-statements,
 | |
|         too-many-statements
 | |
| 
 | |
| [FORMAT]
 | |
| 
 | |
| # Maximum number of characters on a single line.
 | |
| max-line-length=79
 |