Skip to content

Commit

Permalink
afc: ignore xonsh DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Oct 21, 2024
1 parent 92e9213 commit 8c03729
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymobiledevice3/services/afc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import stat as stat_module
import struct
import sys
import warnings
from collections import namedtuple
from datetime import datetime
from re import Pattern
Expand Down Expand Up @@ -726,6 +727,7 @@ class AfcShell:
@classmethod
def create(cls, service_provider: LockdownServiceProvider, service_name: Optional[str] = None,
service: Optional[LockdownService] = None, auto_cd: Optional[str] = '/'):
warnings.filterwarnings("ignore", category=DeprecationWarning)
args = ['--rc', str(pathlib.Path(__file__).absolute())]
os.environ['XONSH_COLOR_STYLE'] = 'default'
XSH.ctx['_class'] = cls
Expand Down

0 comments on commit 8c03729

Please sign in to comment.