~ubuntu-core-dev/ubuntu-release-upgrader/trunk

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeController.py

  • Committer: Colin Watson
  • Date: 2012-05-01 00:29:04 UTC
  • Revision ID: cjwatson@canonical.com-20120501002904-lykzoiapgdmbd7kf
Use Python 3-style print functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#  USA
21
21
 
22
22
 
 
23
from __future__ import print_function
 
24
 
23
25
import warnings
24
26
warnings.filterwarnings("ignore", "apt API not stable yet", FutureWarning)
25
27
import apt
1562
1564
        else:
1563
1565
            args.append("--without-network")
1564
1566
        logging.info("restarting upgrader")
1565
 
        #print "restarting upgrader to make use of the backports"
 
1567
        #print("restarting upgrader to make use of the backports")
1566
1568
        # work around kde being clever and removing the x bit
1567
1569
        check_and_fix_xbit(sys.argv[0])
1568
1570
        os.execve(sys.argv[0],args, os.environ)