@@ -36,7 +36,7 @@ def main(argv=None):
3636 for filename in args .filenames :
3737 recipe_list = None
3838 if filename .endswith (".txt" ):
39- with open (filename , "r" , encoding = "utf-8" ) as openfile :
39+ with open (filename , encoding = "utf-8" ) as openfile :
4040 recipe_list = [
4141 line
4242 for line in openfile .read ().splitlines ()
@@ -53,7 +53,7 @@ def main(argv=None):
5353 # AutoPkg does not support YAML recipe lists, but AutoPkg users
5454 # may have developed custom tooling for this.
5555 try :
56- with open (filename , "r" , encoding = "utf-8" ) as openfile :
56+ with open (filename , encoding = "utf-8" ) as openfile :
5757 recipe_list = yaml .load (openfile )
5858 except Exception as err :
5959 print (f"{ filename } : yaml parsing error: { err } " )
@@ -62,7 +62,7 @@ def main(argv=None):
6262 # AutoPkg does not support JSON recipe lists, but AutoPkg users
6363 # may have developed custom tooling for this.
6464 try :
65- with open (filename , "r" , encoding = "utf-8" ) as openfile :
65+ with open (filename , encoding = "utf-8" ) as openfile :
6666 recipe_list = json .load (openfile )
6767 except Exception as err :
6868 print (f"{ filename } : json parsing error: { err } " )
0 commit comments