Add support for Decimal
Created originally on Bitbucket by Anonymous
Dear Eric,
Below is a patch to add support for Decimal. It works well for me on Python 2.7.1.
Best — anonymous humanoid
{{{ --- openpyxl/shared/init.py.orig 2011-10-04 14:19:14.169987222 -0400 +++ openpyxl/shared/init.py 2011-10-04 14:19:25.147105419 -0400 @@ -31,5 +31,6 @@ from openpyxl.shared import ooxml from openpyxl.shared import password_hasher from openpyxl.shared import xmltools +import decimal
-NUMERIC_TYPES = (int, float, long) +NUMERIC_TYPES = (int, float, long, decimal.Decimal)
}}}