want a wrapper for os.rename that puts the filenames into the error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Ross Lagerwall |
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
affects bzr
status confirmed
importance medium
tags easy error-reporting
Python's built-in os.rename does not report the filenames when it fails.
This makes it hard to debug errors like <https:/
It would be nice to wrap it in osutils.rename and manually insert the to and from
filenames.
OSError has only one filename slot in the upstream API but we could add new
attributes and override the message, or something like that.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAks
wUQAnjldDF7kk9Z
=PLIe
-----END PGP SIGNATURE-----
Related branches
- Jelmer Vernooij (community): Approve
- bzr-core: Pending requested
-
Diff: 69 lines (+33/-2)2 files modifiedbzrlib/osutils.py (+24/-2)
bzrlib/tests/test_osutils.py (+9/-0)
tags: | added: easy error-reporting |
Changed in bzr: | |
status: | Confirmed → In Progress |
Changed in bzr: | |
assignee: | nobody → Ross Lagerwall (rosslagerwall) |
milestone: | none → 2.6b1 |
status: | In Progress → Fix Released |