Skip to content

Commit c60dded

Browse files
committed
Merge pull request robotframework#452 from hgarus/master
Use is not instead of != to check for None
2 parents fb4fe6a + c0b12ef commit c60dded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Selenium2Library/keywords/_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def _parse_attribute_locator(self, attribute_locator):
757757
return (parts[0], parts[2])
758758

759759
def _is_element_present(self, locator, tag=None):
760-
return (self._element_find(locator, True, False, tag=tag) != None)
760+
return (self._element_find(locator, True, False, tag=tag) is not None)
761761

762762
def _page_contains(self, text):
763763
browser = self._current_browser()

0 commit comments

Comments
 (0)