forked from scanny/python-pptx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix case insensitive _ContentTypesItem lookup
ISO/IEC 29500-2, section 10.1.2.3 and 10.1.2.4 specifies that lookup of content type from partname (override) or extension (default) should be case insensitive. This patch adds that behavior. Incidentals: * create separate test class fixture for __getitem__ method of _ContentTypesItem. * change __defaults and __overrides local variables to single leading underscore * initialize _defaults and _overrides to empty dict instead of None * remove guard check for _defaults or _overrides is None on __getitem__ * whitespace adjustments
- Loading branch information
Steve Canny
committed
Jul 13, 2013
1 parent
3168163
commit 643842b
Showing
2 changed files
with
65 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters