Skip to content

Commit

Permalink
Merge pull request #56 from mskrajnowski/master
Browse files Browse the repository at this point in the history
Fix: _labels_for_format was returning None labels
  • Loading branch information
peritus committed Oct 22, 2014
2 parents cf99be3 + edabb01 commit 6296f3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bumpversion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,11 @@ def __init__(self, parse, serialize, search, replace, part_configs=None):
self.replace = replace

def _labels_for_format(self, serialize_format):
return (label for _, label, _, _ in Formatter().parse(serialize_format))
return (
label
for _, label, _, _ in Formatter().parse(serialize_format)
if label
)

def order(self):
# currently, order depends on the first given serialization format
Expand Down

0 comments on commit 6296f3c

Please sign in to comment.