summaryrefslogtreecommitdiffstats
path: root/extras/create_new_xlator/generate_xlator.py
diff options
context:
space:
mode:
Diffstat (limited to 'extras/create_new_xlator/generate_xlator.py')
-rwxr-xr-xextras/create_new_xlator/generate_xlator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/create_new_xlator/generate_xlator.py b/extras/create_new_xlator/generate_xlator.py
index 2746e90893d..983868c04db 100755
--- a/extras/create_new_xlator/generate_xlator.py
+++ b/extras/create_new_xlator/generate_xlator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/python3
from __future__ import print_function
import os
@@ -113,7 +113,7 @@ def gen_xlator():
xlator_methods = fragments["XLATOR_METHODS"].replace("@XL_NAME@", xl_name)
xlator_methods = xlator_methods.replace("@FOP_PREFIX@", fop_prefix)
- print(xlator_methods, file=xl)
+ print(xlator_methods, file=xl)
xl.close()
@@ -169,7 +169,7 @@ def load_fragments ():
cur_value = ""
result = {}
basepath = os.path.abspath(os.path.dirname(__file__))
- fragpath = basepath + "/new-xlator-tmpl.c"
+ fragpath = basepath + "/new-xlator.c.tmpl"
for line in open(fragpath, "r").readlines():
m = pragma_re.search(line)
if m: