@@ -113,7 +113,7 @@ def main():
113113 data .append (seleniumbase_req )
114114 data .append ("" )
115115 file_path = "%s/%s" % (dir_name , "requirements.txt" )
116- file = open (file_path , "w+" , "utf-8" )
116+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
117117 file .writelines ("\r \n " .join (data ))
118118 file .close ()
119119
@@ -151,7 +151,7 @@ def main():
151151 data .append (" production: custom marker" )
152152 data .append ("" )
153153 file_path = "%s/%s" % (dir_name , "pytest.ini" )
154- file = open (file_path , "w+" , "utf-8" )
154+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
155155 file .writelines ("\r \n " .join (data ))
156156 file .close ()
157157
@@ -168,14 +168,14 @@ def main():
168168 data .append ("show_skipped=false" )
169169 data .append ("show_timings=false" )
170170 file_path = "%s/%s" % (dir_name , "setup.cfg" )
171- file = open (file_path , "w+" , "utf-8" )
171+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
172172 file .writelines ("\r \n " .join (data ))
173173 file .close ()
174174
175175 data = []
176176 data .append ("" )
177177 file_path = "%s/%s" % (dir_name , "__init__.py" )
178- file = open (file_path , "w+" , "utf-8" )
178+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
179179 file .writelines ("\r \n " .join (data ))
180180 file .close ()
181181
@@ -311,7 +311,7 @@ def main():
311311 data .append ("temp_*/" )
312312 data .append ("node_modules" )
313313 file_path = "%s/%s" % (dir_name , ".gitignore" )
314- file = open (file_path , "w+" , "utf-8" )
314+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
315315 file .writelines ("\r \n " .join (data ))
316316 file .close ()
317317
@@ -323,7 +323,7 @@ def main():
323323 data .append (" ├── requirements.txt" )
324324 data .append (" └── setup.cfg" )
325325 file_path = "%s/%s" % (dir_name , "outline.rst" )
326- file = open (file_path , "w+" , "utf-8" )
326+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
327327 file .writelines ("\r \n " .join (data ))
328328 file .close ()
329329 os .system ("sbase print %s -n" % file_path )
@@ -367,7 +367,7 @@ def main():
367367 data .append (' self.assert_element("div#login_button_container")' )
368368 data .append ("" )
369369 file_path = "%s/%s" % (dir_name , "my_first_test.py" )
370- file = open (file_path , "w+" , "utf-8" )
370+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
371371 file .writelines ("\r \n " .join (data ))
372372 file .close ()
373373
@@ -460,7 +460,7 @@ def main():
460460 data .append (' self.assert_text("SeleniumBase", "h2")' )
461461 data .append ("" )
462462 file_path = "%s/%s" % (dir_name , "test_demo_site.py" )
463- file = open (file_path , "w+" , "utf-8" )
463+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
464464 file .writelines ("\r \n " .join (data ))
465465 file .close ()
466466
@@ -499,7 +499,7 @@ def main():
499499 data .append (' self.assert_title_contains(title_text)' )
500500 data .append ("" )
501501 file_path = "%s/%s" % (dir_name , "parameterized_test.py" )
502- file = open (file_path , "w+" , "utf-8" )
502+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
503503 file .writelines ("\r \n " .join (data ))
504504 file .close ()
505505
@@ -509,7 +509,7 @@ def main():
509509 data = []
510510 data .append ("" )
511511 file_path = "%s/%s" % (dir_name_2 , "__init__.py" )
512- file = open (file_path , "w+" , "utf-8" )
512+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
513513 file .writelines ("\r \n " .join (data ))
514514 file .close ()
515515
@@ -544,7 +544,7 @@ def main():
544544 data .append (" pass" )
545545 data .append ("" )
546546 file_path = "%s/%s" % (dir_name_2 , "base_test_case.py" )
547- file = open (file_path , "w+" , "utf-8" )
547+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
548548 file .writelines ("\r \n " .join (data ))
549549 file .close ()
550550
@@ -553,7 +553,7 @@ def main():
553553 data .append (' html = "html"' )
554554 data .append ("" )
555555 file_path = "%s/%s" % (dir_name_2 , "page_objects.py" )
556- file = open (file_path , "w+" , "utf-8" )
556+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
557557 file .writelines ("\r \n " .join (data ))
558558 file .close ()
559559
@@ -569,7 +569,7 @@ def main():
569569 data .append (" self.assert_element(Page.html)" )
570570 data .append ("" )
571571 file_path = "%s/%s" % (dir_name_2 , "boilerplate_test.py" )
572- file = open (file_path , "w+" , "utf-8" )
572+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
573573 file .writelines ("\r \n " .join (data ))
574574 file .close ()
575575
@@ -593,7 +593,7 @@ def main():
593593 data .append (' DataPage().add_input_text(self, "Goodbye!")' )
594594 data .append ("" )
595595 file_path = "%s/%s" % (dir_name_2 , "classic_obj_test.py" )
596- file = open (file_path , "w+" , "utf-8" )
596+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
597597 file .writelines ("\r \n " .join (data ))
598598 file .close ()
599599
@@ -613,7 +613,7 @@ def main():
613613 data .append (' DataPage().add_input_text(sb, "Goodbye!")' )
614614 data .append ("" )
615615 file_path = "%s/%s" % (dir_name_2 , "sb_fixture_test.py" )
616- file = open (file_path , "w+" , "utf-8" )
616+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
617617 file .writelines ("\r \n " .join (data ))
618618 file .close ()
619619
@@ -623,7 +623,7 @@ def main():
623623 data = []
624624 data .append ("" )
625625 file_path = "%s/%s" % (dir_name_3 , "__init__.py" )
626- file = open (file_path , "w+" , "utf-8" )
626+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
627627 file .writelines ("\r \n " .join (data ))
628628 file .close ()
629629
@@ -651,7 +651,7 @@ def main():
651651 )
652652 data .append ("" )
653653 file_path = "%s/%s" % (dir_name_3 , "google_test.py" )
654- file = open (file_path , "w+" , "utf-8" )
654+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
655655 file .writelines ("\r \n " .join (data ))
656656 file .close ()
657657
@@ -669,7 +669,7 @@ def main():
669669 data .append (' search_results = "div#center_col"' )
670670 data .append ("" )
671671 file_path = "%s/%s" % (dir_name_3 , "google_objects.py" )
672- file = open (file_path , "w+" , "utf-8" )
672+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
673673 file .writelines ("\r \n " .join (data ))
674674 file .close ()
675675
@@ -701,7 +701,7 @@ def main():
701701 data .append (' self.assert_element("div#login_button_container")' )
702702 data .append ("" )
703703 file_path = "%s/%s" % (dir_name_3 , "swag_labs_test.py" )
704- file = open (file_path , "w+" , "utf-8" )
704+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
705705 file .writelines ("\r \n " .join (data ))
706706 file .close ()
707707
@@ -728,7 +728,7 @@ def main():
728728 data .append (' sb.assert_element("div#login_button_container")' )
729729 data .append ("" )
730730 file_path = "%s/%s" % (dir_name_3 , "sb_swag_test.py" )
731- file = open (file_path , "w+" , "utf-8" )
731+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
732732 file .writelines ("\r \n " .join (data ))
733733 file .close ()
734734
@@ -755,7 +755,7 @@ def main():
755755 data .append (" ├── sb_swag_test.py" )
756756 data .append (" └── swag_labs_test.py" )
757757 file_path = "%s/%s" % (dir_name , "outline.rst" )
758- file = open (file_path , "w+" , "utf-8" )
758+ file = open (file_path , mode = "w+" , encoding = "utf-8" )
759759 file .writelines ("\r \n " .join (data ))
760760 file .close ()
761761 if " " not in file_path :
0 commit comments