Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
(cherry picked from commit 396e3aa)
  • Loading branch information
yimelia committed Sep 29, 2022
1 parent 6230e94 commit a9bc6be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions airtest/core/android/adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import subprocess
import threading
from copy import copy
from six import PY3, PY34, text_type, binary_type, raise_from
from six import PY3, text_type, binary_type
from six.moves import reduce

from airtest.core.android.constant import (DEFAULT_ADB_PATH, IP_PATTERN,
Expand Down Expand Up @@ -476,15 +476,15 @@ def pull(self, remote, local):
local: local destination where the file will be downloaded from the device
Note:
If <=PY34, the path in Windows cannot be the root directory, and cannot contain symbols such as /g in the path
注意:如果低于PY34,windows中路径不能为根目录,并且不能包含/g等符号在路径里
If <=PY3, the path in Windows cannot be the root directory, and cannot contain symbols such as /g in the path
注意:如果低于PY3,windows中路径不能为根目录,并且不能包含/g等符号在路径里
Returns:
None
"""
local = decode_path(local) # py2
if PY3:
# If it is PY3.4 or above, use Path to force / convert to \
# If python3, use Path to force / convert to \
from pathlib import Path
local = Path(local).as_posix()
self.cmd(["pull", remote, local], ensure_unicode=False)
Expand Down

0 comments on commit a9bc6be

Please sign in to comment.