9557f7c critpath.py: Use `with` for file writing

Authored and Committed by adamwill 2 years ago
    critpath.py: Use `with` for file writing
    
    Signed-off-by: Adam Williamson <awilliam@redhat.com>
    
        
file modified
+3 -4