|
 |
d2ff319 |
Index: asterisk-16.1.0/build_tools/get_documentation.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/build_tools/get_documentation.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/build_tools/get_documentation.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#! /usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
# vin: sw=3 et:
|
|
 |
d2ff319 |
'''
|
|
 |
d2ff319 |
Copyright (C) 2012, Digium, Inc.
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/build_tools/post_process_documentation.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/build_tools/post_process_documentation.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/build_tools/post_process_documentation.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#! /usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
# vin: sw=3 et:
|
|
 |
d2ff319 |
'''
|
|
 |
d2ff319 |
Copyright (C) 2012, Digium, Inc.
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/contrib/scripts/refcounter.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/contrib/scripts/refcounter.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/contrib/scripts/refcounter.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#!/usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
"""Process a ref debug log
|
|
 |
d2ff319 |
|
|
 |
d2ff319 |
This file will process a log file created by enabling
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/contrib/scripts/reflocks.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/contrib/scripts/reflocks.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/contrib/scripts/reflocks.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#!/usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
"""Process a ref debug log for lock usage
|
|
 |
d2ff319 |
|
|
 |
d2ff319 |
This file will process a log file created by Asterisk
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/contrib/scripts/refstats.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/contrib/scripts/refstats.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/contrib/scripts/refstats.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#!/usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
"""Process a ref debug log for memory usage
|
|
 |
d2ff319 |
|
|
 |
d2ff319 |
This will provide information about total and peak
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#!/usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
|
|
 |
d2ff319 |
from __future__ import print_function
|
|
 |
d2ff319 |
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/contrib/scripts/sip_to_pjsip/sip_to_pjsql.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/contrib/scripts/sip_to_pjsip/sip_to_pjsql.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/contrib/scripts/sip_to_pjsip/sip_to_pjsql.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#!/usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
|
|
 |
d2ff319 |
from sip_to_pjsip import convert
|
|
 |
d2ff319 |
import sip_to_pjsip
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/contrib/scripts/spandspflow2pcap.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/contrib/scripts/spandspflow2pcap.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/contrib/scripts/spandspflow2pcap.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#!/usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
# vim: set ts=8 sw=4 sts=4 et ai tw=79:
|
|
 |
d2ff319 |
'''
|
|
 |
d2ff319 |
Usage: ./spandspflow2pcap.py SPANDSP_LOG SENDFAX_PCAP
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/contrib/scripts/voicemailpwcheck.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/contrib/scripts/voicemailpwcheck.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/contrib/scripts/voicemailpwcheck.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#!/usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
''' Sample externpasscheck script for use with voicemail.conf
|
|
 |
d2ff319 |
|
|
 |
d2ff319 |
Copyright (C) 2010, Digium, Inc.
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/rest-api-templates/make_ari_stubs.py
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/rest-api-templates/make_ari_stubs.py
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/rest-api-templates/make_ari_stubs.py
|
|
 |
d2ff319 |
@@ -1,4 +1,4 @@
|
|
 |
d2ff319 |
-#!/usr/bin/env python
|
|
 |
4c2c427 |
+#!/usr/bin/python3
|
|
 |
d2ff319 |
# Asterisk -- An open source telephony toolkit.
|
|
 |
d2ff319 |
#
|
|
 |
d2ff319 |
# Copyright (C) 2013, Digium, Inc.
|
|
 |
d2ff319 |
Index: asterisk-16.1.0/contrib/scripts/ast_coredumper
|
|
 |
d2ff319 |
===================================================================
|
|
 |
d2ff319 |
--- asterisk-16.1.0.orig/contrib/scripts/ast_coredumper
|
|
 |
d2ff319 |
+++ asterisk-16.1.0/contrib/scripts/ast_coredumper
|
|
 |
d2ff319 |
@@ -251,7 +251,7 @@ EOF
|
|
 |
d2ff319 |
# For *BSD, the preferred gdb may be in /usr/local/bin so we
|
|
 |
d2ff319 |
# need to search for one that supports python.
|
|
 |
d2ff319 |
for g in $(which -a gdb) ; do
|
|
 |
d2ff319 |
- result=$($g --batch --ex "python print('hello')" 2>/dev/null || : )
|
|
 |
d2ff319 |
+ result=$($g --batch --ex "python2 print('hello')" 2>/dev/null || : )
|
|
 |
d2ff319 |
if [[ "$result" =~ ^hello$ ]] ; then
|
|
 |
d2ff319 |
GDB=$g
|
|
 |
d2ff319 |
break
|