Skip to content

Commit e2ffb24

Browse files
[py] fix pyflakes errors
1 parent 337e431 commit e2ffb24

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

py/selenium/webdriver/remote/webelement.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,10 @@ def send_keys(self, *value):
534534
# transfer file to another machine only if remote driver is used
535535
# the same behaviour as for java binding
536536
if self.parent._is_remote:
537-
local_files = list(map(lambda keys_to_send:
538-
self.parent.file_detector.is_local_file(keys_to_send),
539-
''.join(value).split('\n')))
540-
if not None in local_files:
537+
local_files = list(map(lambda keys_to_send:
538+
self.parent.file_detector.is_local_file(keys_to_send),
539+
''.join(value).split('\n')))
540+
if None not in local_files:
541541
remote_files = []
542542
for file in local_files:
543543
remote_files.append(self._upload(file))

py/test/selenium/webdriver/firefox/ff_profile_tests.py

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
unicode = str
3131

3232
from selenium.webdriver import Firefox, FirefoxProfile
33-
from selenium.webdriver.common.by import By
3433

3534

3635
def test_that_we_can_accept_a_profile(capabilities, webserver):

0 commit comments

Comments
 (0)