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

« back to all changes in this revision

Viewing changes to UpdateManagerText/UpdateManagerText.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:
1
1
#!/usr/bin/python
2
2
# -*- coding: utf-8 -*-
3
3
 
 
4
from __future__ import print_function
 
5
 
4
6
import apt
5
7
import apt_pkg
6
8
import sys
47
49
        if not self.DEBUG:
48
50
            apt_pkg.PkgSystemLock()
49
51
        self.openCache()
50
 
        print _("Building Updates List")
 
52
        print(_("Building Updates List"))
51
53
        self.fillstore()
52
54
        if self.list.distUpgradeWouldDelete > 0:
53
 
            print _("""
 
55
            print(_("""
54
56
A normal upgrade can not be calculated, please run: 
55
57
  sudo apt-get dist-upgrade
56
58
 
59
61
 * A previous upgrade which didn't complete
60
62
 * Problems with some of the installed software
61
63
 * Unofficial software packages not provided by Ubuntu
62
 
 * Normal changes of a pre-release version of Ubuntu""")
 
64
 * Normal changes of a pre-release version of Ubuntu"""))
63
65
            sys.exit(1)
64
66
        self.screen.resume()
65
67