Skip to content

Commit 4cf170c

Browse files
committed
[py] flake8 cleanup
1 parent a401291 commit 4cf170c

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

py/selenium/webdriver/common/action_chains.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def __init__(self, driver):
6969
if self._driver.w3c:
7070
self.w3c_actions = ActionBuilder(driver)
7171

72-
7372
def perform(self):
7473
"""
7574
Performs all stored actions.

py/selenium/webdriver/common/actions/action_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def add_pointer_input(self, type_, name):
7171
return new_input
7272

7373
def perform(self):
74-
enc ={"actions": []}
74+
enc = {"actions": []}
7575
for device in self.devices:
7676
enc["actions"].append(device.encode())
7777
self.driver.execute(Command.W3C_ACTIONS, enc)

py/selenium/webdriver/common/actions/pointer_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
from input_device import InputDevice
18-
from interaction import (Interaction, Pause)
18+
from interaction import Pause
1919

2020

2121
class PointerInput(InputDevice):
@@ -35,7 +35,7 @@ def create_pointer_up(self, button):
3535
self.add_action({"type": "pointerUp", "duration": 0})
3636

3737
def create_pointer_cancel(self):
38-
self.add_action({"type":"pointerCancel"})
38+
self.add_action({"type": "pointerCancel"})
3939

4040
def create_pause(self, pause_duration):
4141
self.add_action(Pause(self, pause_duration))

py/selenium/webdriver/remote/webelement.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ def size(self):
382382
size = {}
383383
if self._w3c:
384384
size = self._execute(Command.GET_ELEMENT_RECT)['value']
385-
print size
386385
else:
387386
size = self._execute(Command.GET_ELEMENT_SIZE)['value']
388387
new_size = {"height": size["height"],

py/test/selenium/webdriver/common/w3c_interaction_tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
import pytest
19-
2018
from selenium.webdriver.common.keys import Keys
2119
from selenium.webdriver.common.actions.action_builder import ActionBuilder
22-
from selenium.webdriver.common.actions.key_actions import KeyActions
2320

2421

2522
def test_should_be_able_to_get_pointer_and_keyboard_inputs(driver, pages):

0 commit comments

Comments
 (0)