Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_cmap.py: avoid IndexError in parse_to_unicode
The code within the if block assumes that lst has index 0 and index 1. So the predicate should depend on lst having at least two elements. This resolves the error I described at py-pdf#1091 (comment) (I'm not sure that it would resolve the other issue raised by @MartinThoma)
- Loading branch information