diff contrib/memory.py @ 16493:72c6240a4b7d stable

encoding: protect against non-ascii default encoding If the default python encoding was changed from ascii, the attempt to encode as ascii before lower() could throw a UnicodeEncodeError. Catch UnicodeError instead to prevent an unhandled exception.
author Cesar Mena <cesarmena@gmail.com>
date Sun, 22 Apr 2012 21:27:52 -0400
parents 08a0f04b56bd
children 3e0d27d298b7
line wrap: on
line diff