[Python-Dev] [Python-checkins] r88323 - in python/branches/release31-maint: Lib/configparser.py Misc/NEWS

Éric Araujo merwok at netwok.org
Wed Feb 2 23:01:24 CET 2011


Hello,

> --- python/branches/release31-maint/Lib/configparser.py	(original)
> +++ python/branches/release31-maint/Lib/configparser.py	Wed Feb  2 22:35:48 2011
> @@ -88,7 +88,7 @@
>  """
>  
>  try:
> -    from collections import OrderedDict as _default_dict
> +    from collections import Mapping, OrderedDict as _default_dict
>  except ImportError:
>      # fallback for setup.py which hasn't yet built _collections
>      _default_dict = dict

Buildbots can’t compile after that change, because Mapping is not found.
 I suggest aliasing Mapping to dict in the except block (untested).

Regards


More information about the Python-Dev mailing list