Skip to content

Commit a29c584

Browse files
committed
[py]: Remove unnecessary list comprehensions in actions
1 parent bad1b4c commit a29c584

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def encode(self):
6363
return {"type": self.type,
6464
"parameters": {"pointerType": self.kind},
6565
"id": self.name,
66-
"actions": [acts for acts in self.actions]}
66+
"actions": self.actions}
6767

6868
def _convert_keys(self, actions):
6969
out = {}

py/selenium/webdriver/common/actions/wheel_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, name) -> None:
5959
def encode(self) -> dict:
6060
return {"type": self.type,
6161
"id": self.name,
62-
"actions": [acts for acts in self.actions]}
62+
"actions": self.actions}
6363

6464
def create_scroll(self, x: int, y: int, delta_x: int,
6565
delta_y: int, duration: int, origin) -> None:

0 commit comments

Comments
 (0)