Clean up xpath-to-css converter code
This commit is contained in:
parent
5164319d19
commit
fa6977224c
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue