Clean up xpath-to-css converter code

This commit is contained in:
Michael Mintz 2018-04-10 01:35:14 -04:00
parent 5164319d19
commit fa6977224c
1 changed files with 1 additions and 2 deletions

View File

@ -52,8 +52,7 @@ def _handle_brackets_in_strings(xpath):
new_xpath += chunks[chunk_num] new_xpath += chunks[chunk_num]
if chunk_num != len_chunks - 1: if chunk_num != len_chunks - 1:
new_xpath += '"' new_xpath += '"'
xpath = new_xpath return new_xpath
return xpath
def _filter_xpath_grouping(xpath): def _filter_xpath_grouping(xpath):