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

« back to all changes in this revision

Viewing changes to check-new-release-gtk

  • Committer: Dimitri John Ledkov
  • Date: 2015-01-20 22:30:06 UTC
  • mto: This revision was merged to the branch mainline in revision 2859.
  • Revision ID: dimitri.j.ledkov@intel.com-20150120223006-ba30fbqtp4x2n0og
Fix resource warnings & logging.warn deprecation warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    # go into nag mode
102
102
    if (ignore_dist == new_dist.name and
103
103
        meta_release.no_longer_supported is None):
104
 
        logging.warn("found new dist '%s' but it is on the ignore list" % new_dist.name)
 
104
        logging.warning("found new dist '%s' but it is on the ignore list" % new_dist.name)
105
105
        sys.exit()
106
106
 
107
107
    # show alert on unsupported distros
157
157
 
158
158
  def timeout(self, user_data):
159
159
    if self.new_dist is None:
160
 
      logging.warn("timeout reached, exiting")
 
160
      logging.warning("timeout reached, exiting")
161
161
      Gtk.main_quit()
162
162
 
163
163
if __name__ == "__main__":