Skip to content

Commit

Permalink
little update
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Apr 16, 2024
1 parent 7c03a72 commit fe3aa9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions adbutils/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@


import abc
import time, datetime
import datetime
import json
import re
import time
from typing import List, Optional, Union
from adbutils._proto import WindowSize, AppInfo, RunningAppInfo
from adbutils.errors import AdbError, AdbInstallError
Expand Down Expand Up @@ -52,7 +53,7 @@ def volume_up(self, times: int = 1):
:param times: times to increase volume,default is 1(Wake up volume bar).
:return:
"""
for i in range(times):
for _ in range(times):
self.shell("input keyevent VOLUME_UP")
time.sleep(0.5)

Expand All @@ -62,7 +63,7 @@ def volume_down(self, times: int = 1):
:param times: times to decrease volume,default is 1(Wake up volume bar).
:return:
"""
for i in range(times):
for _ in range(times):
self.shell("input keyevent VOLUME_DOWN")
time.sleep(0.5)

Expand Down

0 comments on commit fe3aa9c

Please sign in to comment.