mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-23 11:22:42 -06:00
use new pypush package in outer packages
This commit is contained in:
parent
2f435f5d84
commit
a3754316ec
3 changed files with 5 additions and 4 deletions
|
@ -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
|
|
@ -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"
|
||||
|
|
|
@ -16,7 +16,7 @@ import trio
|
|||
from rich.logging import RichHandler
|
||||
|
||||
import printer
|
||||
import apns
|
||||
from pypush import apns
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.NOTSET,
|
||||
|
|
Loading…
Reference in a new issue