@@ -48,7 +48,7 @@ def generate_commit_timestamp():
4848def get_requirements (base_directory , filename ):
4949 result = []
5050
51- with open (os .path .join (base_directory , filename )) as file_object :
51+ with open (file = os .path .join (base_directory , filename )) as file_object :
5252 for line in file_object :
5353 if line .startswith ('-r' ):
5454 line = line .split ('\n ' )[0 ][3 :]
@@ -72,16 +72,16 @@ def get_requirements(base_directory, filename):
7272 base_directory = BASE_DIR , filename = REQUIREMENTS_FILE
7373 )
7474
75- with open (SETUP_TEMPLATE ) as file_object :
75+ with open (file = SETUP_TEMPLATE ) as file_object :
7676 template = file_object .read ()
7777 result = Template (template ).render (
7878 context = Context ({'requirements' : requirements })
7979 )
8080
81- with open ('setup.py' , 'w' ) as file_object :
81+ with open (file = 'setup.py' , mode = 'w' ) as file_object :
8282 file_object .write (result )
8383
84- with open (MAYAN_TEMPLATE ) as file_object :
84+ with open (file = MAYAN_TEMPLATE ) as file_object :
8585 template = file_object .read ()
8686
8787 # Ignore local version if any
@@ -102,5 +102,5 @@ def get_requirements(base_directory, filename):
102102 )
103103 )
104104
105- with open (os .path .join (BASE_DIR , 'mayan' , '__init__.py' ), 'w' ) as file_object :
105+ with open (file = os .path .join (BASE_DIR , 'mayan' , '__init__.py' ), mode = 'w' ) as file_object :
106106 file_object .write (result )
0 commit comments