Skip to content

Commit

Permalink
change PY34 to PY3
Browse files Browse the repository at this point in the history
(cherry picked from commit aaa68b9)
  • Loading branch information
yimelia committed Sep 29, 2022
1 parent ab9f7d2 commit 6230e94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion airtest/core/android/adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def pull(self, remote, local):
None
"""
local = decode_path(local) # py2
if PY34:
if PY3:
# If it is PY3.4 or above, use Path to force / convert to \
from pathlib import Path
local = Path(local).as_posix()
Expand Down
6 changes: 2 additions & 4 deletions airtest/core/android/rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
import threading
import traceback
from airtest.utils.snippet import reg_cleanup, is_exiting, on_method_ready
from airtest.utils.snippet import reg_cleanup, is_exiting, on_method_ready, kill_proc
from airtest.utils.nbsp import NonBlockingStreamReader
from airtest.utils.logger import get_logger
from airtest.core.android.constant import ORI_METHOD, ROTATIONWATCHER_JAR
Expand Down Expand Up @@ -92,9 +92,7 @@ def setup_server(self):
def teardown(self):
self._t_kill_event.set()
if self.ow_proc:
self.ow_proc.kill()
# close io.Buffer
self.ow_proc.communicate()
kill_proc(self.ow_proc)
if self.nbsp:
self.nbsp.kill()
self.ow_callback = []
Expand Down

0 comments on commit 6230e94

Please sign in to comment.