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

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeFetcherCore.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
from string import Template
25
25
import os
33
33
from gettext import gettext as _
34
34
from aptsources.sourceslist import SourcesList
35
35
 
36
 
from utils import get_dist, url_downloadable, country_mirror
 
36
from .utils import get_dist, url_downloadable, country_mirror
37
37
 
38
38
class DistUpgradeFetcherCore(object):
39
39
    " base class (without GUI) for the upgrade fetcher "