diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2008-09-14 01:41:25 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2008-09-14 01:41:25 +0000 |
commit | df02435a1cd0662788135919b303a4cffb9a7d21 (patch) | |
tree | b2a71b0e735259633841d7cbf70e253e66cd0fed /src | |
parent | b1ccce863304fb9454db97145a1796e7c7676f1f (diff) | |
download | bcfg2-df02435a1cd0662788135919b303a4cffb9a7d21.tar.gz bcfg2-df02435a1cd0662788135919b303a4cffb9a7d21.tar.bz2 bcfg2-df02435a1cd0662788135919b303a4cffb9a7d21.zip |
Use print instead of sys.out.write
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4913 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-x | src/sbin/bcfg2-admin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index bf7296517..71ac68efc 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -35,14 +35,14 @@ if __name__ == '__main__': modes.remove('mode') if len(args) < 1 or args[0] == 'help': - sys.stdout.write("Usage: bcfg2-admin MODE [ARGS]\n\n" + print ("Usage: bcfg2-admin MODE [ARGS]\n\n" "Available modes are:") if len(args) > 1: args = [args[1], args[0]] else: for mode in modes: - sys.stdout.write("\n %-12s %s" % - (mode, mode_import(mode).__shorthelp__)) + print (" %-12s %s" % + (mode, mode_import(mode).__shorthelp__)) raise SystemExit(0) if args[0] in modes: modname = args[0].capitalize() |