string exception in bzrlib/bundle/bundle_data.py
Bug #586926 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
String exceptions are illegal in Python 2.6. Line 334 in bzrlib/
Found by Jakub Wilk in debian-python.
Related branches
lp://staging/~jameinel/bzr/2.0-string-exception-586926
- Barry Warsaw: Approve
-
Diff: 32 lines (+5/-2)2 files modifiedNEWS (+3/-0)
bzrlib/bundle/bundle_data.py (+2/-2)
Changed in bzr: | |
milestone: | none → 2.0.6 |
status: | New → Fix Released |
To post a comment you must log in.
A simple and appropriate fix.
=== modified file 'bzrlib/ bundle/ bundle_ data.py' bundle/ bundle_ data.py 2009-09-20 22:12:36 +0000 bundle/ bundle_ data.py 2010-05-28 17:55:24 +0000
try:
name, value = info_item. split(' :', 1)
except ValueError:
last_changed = value
elif name == 'executable':
--- bzrlib/
+++ bzrlib/
@@ -331,7 +331,7 @@
- raise 'Value %r has no colon' % info_item
+ raise ValueError('Value %r has no colon' % info_item)
if name == 'last-changed':