~barry/ubuntu-system-image/citrain302

« back to all changes in this revision

Viewing changes to systemimage/api.py

  • Committer: CI bot
  • Author(s): Barry Warsaw, Stéphane Graber
  • Date: 2014-02-25 17:48:18 UTC
  • mfrom: (228.1.9 didier)
  • Revision ID: ps-jenkins@lists.canonical.com-20140225174818-3yz01iuxmcsz98zo
New upstream release, along with some packaging changes.  See changelog and NEWS.rst for details. Fixes: 1260768, 1277589, 1279056, 1284217

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2013 Canonical Ltd.
 
1
# Copyright (C) 2013-2014 Canonical Ltd.
2
2
# Author: Barry Warsaw <barry@ubuntu.com>
3
3
 
4
4
# This program is free software: you can redistribute it and/or modify
73
73
        self._update = None
74
74
        self._callback = callback
75
75
 
 
76
    def __repr__(self):
 
77
        return '<Mediator at 0x{:x} | State at 0x{:x}>'.format(
 
78
            id(self), id(self._state))
 
79
 
76
80
    def cancel(self):
77
81
        self._state.downloader.cancel()
78
82