@@ -33,7 +33,7 @@ def main():
3333 if num_args < 2 or num_args > 2 :
3434 raise Exception ('\n \n * INVALID RUN COMMAND! * Usage:\n '
3535 '"python convert_ide.py %s"\n ' % expected_arg )
36- webdriver_python_file = sys .argv [num_args - 1 ]
36+ webdriver_python_file = sys .argv [num_args - 1 ]
3737 if not webdriver_python_file .endswith ('.py' ):
3838 raise Exception ("\n \n `%s` is not a Python file!\n \n "
3939 "Expecting: %s\n "
@@ -589,15 +589,15 @@ def main():
589589 selector = re .escape (selector )
590590 selector = page_utils .escape_quotes_if_needed (selector )
591591 if int (line_num ) < num_lines - 1 :
592- regex_string = (r'''^\s*self.click\(["|']'''
593- + selector + r'''["|']\)\s*$''' )
594- data2 = re .match (regex_string , lines [line_num + 1 ])
592+ regex_string = (r'''^\s*self.click\(["|']''' +
593+ selector + r'''["|']\)\s*$''' )
594+ data2 = re .match (regex_string , lines [line_num + 1 ])
595595 if data2 :
596596 continue
597- regex_string = (r'''^\s*self.update_text\(["|']'''
598- + selector
599- + r'''["|'], [\S\s]+\)\s*$''' )
600- data2 = re .match (regex_string , lines [line_num + 1 ])
597+ regex_string = (r'''^\s*self.update_text\(["|']''' +
598+ selector +
599+ r'''["|'], [\S\s]+\)\s*$''' )
600+ data2 = re .match (regex_string , lines [line_num + 1 ])
601601 if data2 :
602602 continue
603603 seleniumbase_lines .append (lines [line_num ])
@@ -617,9 +617,9 @@ def main():
617617 link_text = re .escape (link_text )
618618 link_text = page_utils .escape_quotes_if_needed (link_text )
619619 if int (line_num ) < num_lines - 2 :
620- regex_string = (r'''^\s*self.click\(["|']link='''
621- + link_text + r'''["|']\)\s*$''' )
622- data2 = re .match (regex_string , lines [line_num + 1 ])
620+ regex_string = (r'''^\s*self.click\(["|']link=''' +
621+ link_text + r'''["|']\)\s*$''' )
622+ data2 = re .match (regex_string , lines [line_num + 1 ])
623623 if data2 :
624624 continue
625625 seleniumbase_lines .append (lines [line_num ])
0 commit comments