diff options
author | Armin Rigo <arigo@tunes.org> | 2006-05-28 19:13:17 +0000 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2006-05-28 19:13:17 +0000 |
commit | a3f092751ae5f29957c78a7e86381532629c7fa3 (patch) | |
tree | 27eecd5671e5bbe3654c5630a62d1deb7300e80b /Lib/base64.py | |
parent | e9eeab5c0539ede73b52f9df9bd4da8346c91741 (diff) | |
download | cpython-git-a3f092751ae5f29957c78a7e86381532629c7fa3.tar.gz |
("Forward-port" of r46506)
Remove various dependencies on dictionary order in the standard library
tests, and one (clearly an oversight, potentially critical) in the
standard library itself - base64.py.
Remaining open issues:
* test_extcall is an output test, messy to make robust
* tarfile.py has a potential bug here, but I'm not familiar
enough with this code. Filed in as SF bug #1496501.
* urllib2.HTTPPasswordMgr() returns a random result if there is more
than one matching root path. I'm asking python-dev for
clarification...
Diffstat (limited to 'Lib/base64.py')
-rwxr-xr-x | Lib/base64.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/base64.py b/Lib/base64.py index 8914acce92..c196cd8a84 100755 --- a/Lib/base64.py +++ b/Lib/base64.py @@ -126,7 +126,9 @@ _b32alphabet = { 8: 'I', 17: 'R', 26: '2', } -_b32tab = [v for v in _b32alphabet.values()] +_b32tab = _b32alphabet.items() +_b32tab.sort() +_b32tab = [v for k, v in _b32tab] _b32rev = dict([(v, long(k)) for k, v in _b32alphabet.items()]) |