Skip to content

Commit

Permalink
[py] fix pyflakes errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Nov 17, 2020
1 parent 337e431 commit e2ffb24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,10 @@ def send_keys(self, *value):
# transfer file to another machine only if remote driver is used
# the same behaviour as for java binding
if self.parent._is_remote:
local_files = list(map(lambda keys_to_send:
self.parent.file_detector.is_local_file(keys_to_send),
''.join(value).split('\n')))
if not None in local_files:
local_files = list(map(lambda keys_to_send:
self.parent.file_detector.is_local_file(keys_to_send),
''.join(value).split('\n')))
if None not in local_files:
remote_files = []
for file in local_files:
remote_files.append(self._upload(file))
Expand Down
1 change: 0 additions & 1 deletion py/test/selenium/webdriver/firefox/ff_profile_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
unicode = str

from selenium.webdriver import Firefox, FirefoxProfile
from selenium.webdriver.common.by import By


def test_that_we_can_accept_a_profile(capabilities, webserver):
Expand Down

0 comments on commit e2ffb24

Please sign in to comment.