[fix] SyntaxWarning: invalid escape sequence '\>'
This patch fixes issue reported by ``make test.unit``::
   searx/search/checker/impl.py:39: SyntaxWarning: invalid escape sequence '\>'
      rep = ['<' + tag + '[^\>]*>' for tag in HTML_TAGS]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
			
			
This commit is contained in:
		
							parent
							
								
									b0b2efdc8d
								
							
						
					
					
						commit
						87f18b98ec
					
				| @ -36,7 +36,7 @@ HTML_TAGS = [ | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def get_check_no_html(): | def get_check_no_html(): | ||||||
|     rep = ['<' + tag + '[^\>]*>' for tag in HTML_TAGS] |     rep = ['<' + tag + r'[^\>]*>' for tag in HTML_TAGS] | ||||||
|     rep += ['</' + tag + '>' for tag in HTML_TAGS] |     rep += ['</' + tag + '>' for tag in HTML_TAGS] | ||||||
|     pattern = re.compile('|'.join(rep)) |     pattern = re.compile('|'.join(rep)) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Markus Heiser
						Markus Heiser