summaryrefslogtreecommitdiff
path: root/rest-api-templates/make_ari_stubs.py
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2018-04-19 03:40:02 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2018-04-19 03:40:02 -0500
commit8df2921e6edcffb5f0dad54456b654c891fff95d (patch)
tree7758c98a801f4c1efd4f6461ccb31f681120a64e /rest-api-templates/make_ari_stubs.py
parent6ccf08c54382798609273e65fd67c2d16d6ecdcf (diff)
parent879e592baf80712ba2e54110ece0e036df892ea0 (diff)
Merge "Build System: Enable python3 compatibility."
Diffstat (limited to 'rest-api-templates/make_ari_stubs.py')
-rwxr-xr-xrest-api-templates/make_ari_stubs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/rest-api-templates/make_ari_stubs.py b/rest-api-templates/make_ari_stubs.py
index 0aba06d6d..a25773df4 100755
--- a/rest-api-templates/make_ari_stubs.py
+++ b/rest-api-templates/make_ari_stubs.py
@@ -16,19 +16,20 @@
# at the top of the source tree.
#
+from __future__ import print_function
import sys
try:
import pystache
except ImportError:
- print >> sys.stderr, "Pystache required. Please sudo pip install pystache."
+ print("Pystache required. Please sudo pip install pystache.", file=sys.stderr)
sys.exit(1)
import os.path
from asterisk_processor import AsteriskProcessor
from optparse import OptionParser
-from swagger_model import *
+from swagger_model import ResourceListing
from transform import Transform
TOPDIR = os.path.dirname(os.path.abspath(__file__))