Refactoring & install with pyproject.toml #1
@@ -59,7 +59,7 @@ def read_skip_comment(fp, commentstring):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def diff(destfile, tempfile, commentstring, cfg):
 | 
					def diff(destfile, tempfile, commentstring, cfg):
 | 
				
			||||||
    """diff destfile and tempfile, returns True if files differ, False if they are the same"""
 | 
					    """diff destfile and tempfile, returns True if files differ, False if they are the same"""
 | 
				
			||||||
    cfg.debug.stdout("Diffing %s and %s" % (destfile, tempfile), 3)
 | 
					    cfg.debug.stdout("Diffing %s and %s, comment: %s" % (destfile, tempfile, commentstring), 3)
 | 
				
			||||||
    if not os.path.isfile(destfile):
 | 
					    if not os.path.isfile(destfile):
 | 
				
			||||||
        cfg.debug.stdout("Destfile %s does not exist, returning True." % destfile, 3)
 | 
					        cfg.debug.stdout("Destfile %s does not exist, returning True." % destfile, 3)
 | 
				
			||||||
        # destfile does not exist -> copy tempfile over
 | 
					        # destfile does not exist -> copy tempfile over
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user