mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-10-31 15:32:55 +00:00 
			
		
		
		
	Remove unnecessary parentheses
This commit is contained in:
		| @@ -20,7 +20,7 @@ def get_source_code(func, strip_comments=False): | ||||
|     if strip_comments: | ||||
|         # TODO: less fragile way to do this (tokenizer sadly inserts whitespaces all around) | ||||
|         comment_pattern = re.compile('^(\s.*)#.*$') | ||||
|         source = ''.join(( | ||||
|         source = ''.join( | ||||
|             line for line in StringIO(source).readlines() if re.match(comment_pattern, line) is None | ||||
|         )) | ||||
|         ) | ||||
|     return source | ||||
|   | ||||
		Reference in New Issue
	
	Block a user