use new pypush package in outer packages

This commit is contained in:
Cypheriel 2023-11-19 15:01:00 -07:00
parent 2f435f5d84
commit a3754316ec
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

View file

@ -5,7 +5,7 @@ from websockets.sync.client import connect
import json
from base64 import b64encode
import random
import bags
from pypush import bags
import requests
import plistlib
import icloud.gsa as gsa
@ -52,7 +52,7 @@ with connect(ANISETTE_SERVER) as websocket:
elif message["result"] == "GiveEndProvisioningData":
if 'cpim' in message:
cpim = message['cpim']
cpim = message['cpim']
elif message["result"] == "Timeout":
break

View file

@ -106,7 +106,8 @@ def _p_filter(prefix, fields: list[tuple[int, bytes]]):
)
import apns
from pypush import apns
def print_payload(payload: apns.APNSPayload, to_server: bool):
prefix = "apsd -> APNs" if to_server else "APNs -> apsd"

View file

@ -16,7 +16,7 @@ import trio
from rich.logging import RichHandler
import printer
import apns
from pypush import apns
logging.basicConfig(
level=logging.NOTSET,