Update custom_apns script for Python 3

Change-Id: Ia693daadac323e7c245867dbc7756f31637a4c15
This commit is contained in:
Georg Veichtlbauer 2023-11-02 11:57:45 +01:00 committed by Bruno Martins
parent 3e2414bfdb
commit de4302a67a

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (C) 2018 The LineageOS Project
#
@ -17,10 +17,10 @@
import re
import sys
from importlib import reload
def main(argv):
reload(sys)
sys.setdefaultencoding('utf8')
original_file = 'vendor/lineage/prebuilt/common/etc/apns-conf.xml'
if len(argv) == 3: