summaryrefslogtreecommitdiffstats
path: root/tools/accounts2xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/accounts2xml.py')
-rwxr-xr-xtools/accounts2xml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/accounts2xml.py b/tools/accounts2xml.py
index de41c6107..0f7624f7d 100755
--- a/tools/accounts2xml.py
+++ b/tools/accounts2xml.py
@@ -71,7 +71,7 @@ def main(args):
with file(filename, 'w') as modified: modified.write("name:pass:uid:gid:gecos:home:shell\n" + data); modified.close()
safe_filename = "Properties"
except IndexError:
- print "ERROR: Please provide a filename.csv as the first argument"
+ print("ERROR: Please provide a filename.csv as the first argument")
sys.exit()
node_user = "UnixUser"
@@ -107,7 +107,7 @@ def main(args):
output_file = "accounts.xml"
doc.writexml(open(output_file, 'w'), addindent=' ', newl='\n') # Write file
- print "Done: Created %s" % output_file
+ print("Done: Created %s" % output_file)
os.remove(filename)
def create_col_nodes(cols, item, doc, row):