~ubuntu-core-dev/update-manager/main

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeViewGtk.py

  • Committer: Colin Watson
  • Date: 2012-05-01 14:01:29 UTC
  • Revision ID: cjwatson@canonical.com-20120501140129-emzjcpf4f22zr54g
Tell Python to use absolute imports by default, and annotate cases where
we need relative imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
20
#  USA
21
21
 
22
 
from __future__ import print_function
 
22
from __future__ import absolute_import, print_function
23
23
 
24
24
import pygtk
25
25
pygtk.require('2.0')
39
39
import apt_pkg
40
40
import os
41
41
 
42
 
from DistUpgradeApport import run_apport, apport_crash
 
42
from .DistUpgradeApport import run_apport, apport_crash
43
43
 
44
 
from DistUpgradeView import DistUpgradeView, FuzzyTimeToStr, InstallProgress, FetchProgress
45
 
from SimpleGtkbuilderApp import SimpleGtkbuilderApp
 
44
from .DistUpgradeView import DistUpgradeView, FuzzyTimeToStr, InstallProgress, FetchProgress
 
45
from .SimpleGtkbuilderApp import SimpleGtkbuilderApp
46
46
 
47
47
import gettext
48
 
from DistUpgradeGettext import gettext as _
 
48
from .DistUpgradeGettext import gettext as _
49
49
 
50
50
gobject.threads_init()
51
51