mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-11-03 19:30:54 +00:00 
			
		
		
		
	Fixed UP015 (redundant-open-modes): Unnecessary open mode parameters
This commit is contained in:
		
							parent
							
								
									11899920b7
								
							
						
					
					
						commit
						b412e7b4ba
					
				@ -124,7 +124,7 @@ def generate_documentation():
 | 
			
		||||
 """)
 | 
			
		||||
 | 
			
		||||
	parser = Source.parser()
 | 
			
		||||
	with open("setup/start.sh", "r") as start_file:
 | 
			
		||||
	with open("setup/start.sh") as start_file:
 | 
			
		||||
		for line in start_file:
 | 
			
		||||
			try:
 | 
			
		||||
				fn = parser.parse_string(line).filename()
 | 
			
		||||
@ -401,7 +401,7 @@ class BashScript(Grammar):
 | 
			
		||||
	@staticmethod
 | 
			
		||||
	def parse(fn):
 | 
			
		||||
		if fn in ("setup/functions.sh", "/etc/mailinabox.conf"): return ""
 | 
			
		||||
		with open(fn, "r") as f:
 | 
			
		||||
		with open(fn) as f:
 | 
			
		||||
			string = f.read()
 | 
			
		||||
 | 
			
		||||
		# tokenize
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user