peritus/bumpversion — pull request #56 by mskrajnowski (2014-09-16 09:51:59+00:00)
Title: Fix: _labels_for_format was returning None labels

If there were any characters after the last label in the serialize string, `_labels_for_format` would return an extra `None` label.

Example config file:
```cfg
[bumpversion:file:bower.json]
parse = "version": "(?P\d+)\.(?P\d+)\.(?P\d+)"
serialize = "version": "{major}.{minor}.{patch}"
```