Access the key that was looked up in a way that will result in the
same output for both Python 2.2 and 2.3. Python 2.3 changes the str() of KeyError exceptions to return a repr() of the key instead of the str() of the key, which caused quotes to be generated if we don't pick out just the key.
Showing
Please register or sign in to comment