mirror of
				https://github.com/yuzu-emu/mbedtls.git
				synced 2025-11-04 10:04:49 +00:00 
			
		
		
		
	Pylint: allow using pass even when not strictly necessary
If we take the trouble of using pass, it's because we think the code
is clearer that way. For example, Pylint 2.4 rejects pass in
    def foo():
        """Do nothing."""
        pass
But relying on a docstring as the sole code is weird, hence the use of
pass.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
			
			
This commit is contained in:
		
							parent
							
								
									8b022359e8
								
							
						
					
					
						commit
						7747efce14
					
				| 
						 | 
					@ -55,7 +55,9 @@ max-module-lines=2000
 | 
				
			||||||
#        return value1
 | 
					#        return value1
 | 
				
			||||||
#    else:
 | 
					#    else:
 | 
				
			||||||
#        return value2
 | 
					#        return value2
 | 
				
			||||||
disable=logging-format-interpolation,no-else-return
 | 
					# * unnecessary-pass: If we take the trouble of adding a line with "pass",
 | 
				
			||||||
 | 
					#   it's because we think the code is clearer that way.
 | 
				
			||||||
 | 
					disable=logging-format-interpolation,no-else-return,unnecessary-pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[REPORTS]
 | 
					[REPORTS]
 | 
				
			||||||
# Don't diplay statistics. Just the facts.
 | 
					# Don't diplay statistics. Just the facts.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue