config_dir() is inconsistent about type it returns
Bug #825826 reported by
Jelmer Vernooij
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin Packman |
Bug Description
depending on how it determines the config directory, bzrlib.
In some cases it returns a unicode string, and in some cases it returns a byte string. It would be nice if it was consistent, so callers could rely on it.
Related branches
lp:~gz/bzr/config_dir_decoding
- Vincent Ladeuil: Approve
-
Diff: 96 lines (+21/-29)3 files modifiedbzrlib/config.py (+15/-29)
bzrlib/tests/test_config.py (+3/-0)
doc/en/release-notes/bzr-2.5.txt (+3/-0)
tags: | added: config |
Changed in bzr: | |
assignee: | nobody → Martin Packman (gz) |
status: | Confirmed → In Progress |
Changed in bzr: | |
milestone: | none → 2.5b6 |
status: | In Progress → Fix Released |
To post a comment you must log in.
On 13/08/11 17:40, Vincent Ladeuil wrote:
> ** Tags added: config
What would be the best thing to return in this case, a _fs_enc-encoded
bytestring?
Cheers,
Jelmer