Skip to content

Commit 88cd74c

Browse files
committed
[py] fix imports for py3
1 parent 4cf170c commit 88cd74c

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

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

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

18-
import interaction
19-
20-
from .key_input import KeyInput
18+
from selenium.webdriver.remote.command import Command
19+
from . import interaction
2120
from .key_actions import KeyActions
22-
from .pointer_input import PointerInput
21+
from .key_input import KeyInput
2322
from .pointer_actions import PointerActions
24-
25-
from selenium.webdriver.remote.command import Command
23+
from .pointer_input import PointerInput
2624

2725

2826
class ActionBuilder(object):
29-
3027
def __init__(self, driver, mouse=None, keyboard=None):
3128
if mouse is None:
3229
mouse = PointerInput("mouse", "mouse")

py/selenium/webdriver/common/actions/key_actions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
from ..utils import keys_to_typing
18-
1917
from .interaction import Interaction
2018
from .key_input import KeyInput
19+
from ..utils import keys_to_typing
2120

2221

2322
class KeyActions(Interaction):

py/selenium/webdriver/common/actions/key_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
import interaction
17+
from . import interaction
1818

1919
from input_device import InputDevice
2020
from interaction import (Interaction,

py/selenium/webdriver/common/actions/pointer_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
from interaction import Interaction
17+
from .interaction import Interaction
1818
from .pointer_input import PointerInput
1919

2020

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
from input_device import InputDevice
18-
from interaction import Pause
17+
from .input_device import InputDevice
18+
from .interaction import Pause
1919

2020

2121
class PointerInput(InputDevice):

0 commit comments

Comments
 (0)