Fix print function in uninstall.py

This commit is contained in:
Todd Gamblin 2016-03-21 00:11:18 -07:00
parent 861a235ecb
commit 48b35bb495

View File

@ -22,6 +22,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
############################################################################## ##############################################################################
from __future__ import print_function
import sys import sys
import argparse import argparse
@ -63,12 +64,12 @@ def uninstall(parser, args):
matching_specs = spack.installed_db.query(spec) matching_specs = spack.installed_db.query(spec)
if not args.all and len(matching_specs) > 1: if not args.all and len(matching_specs) > 1:
tty.error("%s matches multiple packages:" % spec) tty.error("%s matches multiple packages:" % spec)
print print()
display_specs(matching_specs, long=True) display_specs(matching_specs, long=True)
print print()
print "You can either:" print("You can either:")
print " a) Use a more specific spec, or" print(" a) Use a more specific spec, or")
print " b) use spack uninstall -a to uninstall ALL matching specs." print(" b) use spack uninstall -a to uninstall ALL matching specs.")
sys.exit(1) sys.exit(1)
if len(matching_specs) == 0: if len(matching_specs) == 0: