Merge lp:~barry/update-manager/673297-py27 into lp:update-manager

Proposed by Barry Warsaw
Status: Merged
Merge reported by: Michael Vogt
Merged at revision: not available
Proposed branch: lp:~barry/update-manager/673297-py27
Merge into: lp:update-manager
Diff against target: 32 lines (+10/-2)
2 files modified
UpdateManager/Core/utils.py (+2/-2)
debian/changelog (+8/-0)
To merge this branch: bzr merge lp:~barry/update-manager/673297-py27
Reviewer Review Type Date Requested Status
Michael Vogt (community) Approve
Review via email: mp+40510@code.launchpad.net

Description of the change

From the changelog:

 * In Python 2.7, locale.format() input test has gotten more strict. It
   does not allow trailing text after the format string. Change this to
   locale.format_string(). See Python issue 10379. (LP: #673297)

To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

With this change, and no-change rebuilds for gnome-python, python-apt, and dbus-python, Update Manager will work with Python 2.7 on Natty.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks! That looks fine. Merged.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'UpdateManager/Core/utils.py'
--- UpdateManager/Core/utils.py 2010-08-12 09:54:02 +0000
+++ UpdateManager/Core/utils.py 2010-11-10 10:04:04 +0000
@@ -349,10 +349,10 @@
349 return _("1 KB")349 return _("1 KB")
350 elif bytes < 1024 * 1024:350 elif bytes < 1024 * 1024:
351 # TRANSLATORS: download size of small updates, e.g. "250 KB"351 # TRANSLATORS: download size of small updates, e.g. "250 KB"
352 return locale.format(_("%.0f KB"), bytes/1024)352 return locale.format_string(_("%.0f KB"), bytes/1024)
353 else:353 else:
354 # TRANSLATORS: download size of updates, e.g. "2.3 MB"354 # TRANSLATORS: download size of updates, e.g. "2.3 MB"
355 return locale.format(_("%.1f MB"), bytes / 1024 / 1024)355 return locale.format_string(_("%.1f MB"), bytes / 1024 / 1024)
356356
357if __name__ == "__main__":357if __name__ == "__main__":
358 #print mirror_from_sources_list()358 #print mirror_from_sources_list()
359359
=== modified file 'debian/changelog'
--- debian/changelog 2010-11-04 22:54:45 +0000
+++ debian/changelog 2010-11-10 10:04:04 +0000
@@ -1,3 +1,11 @@
1update-manager (1:0.145.2) UNRELEASED; urgency=low
2
3 * In Python 2.7, locale.format() input test has gotten more strict. It
4 does not allow trailing text after the format string. Change this to
5 locale.format_string(). See Python issue 10379. (LP: #673297)
6
7 -- Barry Warsaw <barry@ubuntu.com> Tue, 09 Nov 2010 22:01:28 -0500
8
1update-manager (1:0.145.1) UNRELEASED; urgency=low9update-manager (1:0.145.1) UNRELEASED; urgency=low
210
3 * DistUpgrade/EOLReleaseAnnouncement:11 * DistUpgrade/EOLReleaseAnnouncement:

Subscribers

People subscribed via source and target branches

to status/vote changes: