mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	pylint: Reenable R1723 no-else-break
* R1723: Unnecessary "elif" after "break", remove the leading "el" from "elif" (no-else-break)
This commit is contained in:
		
							parent
							
								
									abc752314b
								
							
						
					
					
						commit
						1fbfae355a
					
				
					 3 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1803,7 +1803,7 @@ def parse_androidmanifests(paths, app):
 | 
			
		|||
                                if re.match(r'.*[\'"\s]{flavour}[\'"\s].*\{{.*'.format(flavour=flavour), line):
 | 
			
		||||
                                    inside_required_flavour = 2
 | 
			
		||||
                                    break
 | 
			
		||||
                                elif re.match(r'.*[\'"\s]{flavour}[\'"\s].*'.format(flavour=flavour), line):
 | 
			
		||||
                                if re.match(r'.*[\'"\s]{flavour}[\'"\s].*'.format(flavour=flavour), line):
 | 
			
		||||
                                    inside_required_flavour = 1
 | 
			
		||||
                                    break
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -623,7 +623,7 @@ def upload_apk_to_virustotal(virustotal_apikey, packageName, apkName, hash,
 | 
			
		|||
                                + str(response['positives']) + ' times:'
 | 
			
		||||
                                + '\n\t' + response['permalink'])
 | 
			
		||||
            break
 | 
			
		||||
        elif r.status_code == 204:
 | 
			
		||||
        if r.status_code == 204:
 | 
			
		||||
            logging.warning(_('virustotal.com is rate limiting, waiting to retry...'))
 | 
			
		||||
            time.sleep(30)  # wait for public API rate limiting
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,7 +67,6 @@ disable = [
 | 
			
		|||
  "missing-class-docstring",
 | 
			
		||||
  "missing-function-docstring",
 | 
			
		||||
  "missing-module-docstring",
 | 
			
		||||
  "no-else-break",
 | 
			
		||||
  "no-else-continue",
 | 
			
		||||
  "no-else-raise",
 | 
			
		||||
  "no-else-return",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue