summaryrefslogtreecommitdiffstats
path: root/tools/accounts2xml.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-15 15:05:55 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-15 15:05:55 -0400
commit30fc9f2e1e8f5e59fa98d9e9df6263da88b9eaed (patch)
tree0c2c0d40e9e893d7a28f3dfcc7d5ebc3e81185a3 /tools/accounts2xml.py
parentde4940d9f39c51d68623eba9c99cc0a56deb9428 (diff)
downloadbcfg2-30fc9f2e1e8f5e59fa98d9e9df6263da88b9eaed.tar.gz
bcfg2-30fc9f2e1e8f5e59fa98d9e9df6263da88b9eaed.tar.bz2
bcfg2-30fc9f2e1e8f5e59fa98d9e9df6263da88b9eaed.zip
removed print statements
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):