jeetsukumaran/DendroPy — pull request #3 by jonchang (2012-08-22 07:57:38+00:00)
Title: Improves the appearance of NEXUS character sets.

Character partitions produced by DendroPy typically look something like this:

charset locus000 = 1 2 3 4 5 6;
charset locus001 = 7 8 9 10;

This patch collapses consecutive numbers into a range like so:

charset locus000 = 1-6;
charset locus001 = 7-10;

The result is a smaller written file and a more human-readable output.