Skip to content

Commit

Permalink
fix: dev: cosmetics !minor
Browse files Browse the repository at this point in the history
  • Loading branch information
vaab committed Mar 17, 2017
1 parent 804c872 commit b8bd6c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .gitchangelog.rc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ignore_regexps = [
##
section_regexps = [
('New', [
r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),
('Changes', [
r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
Expand Down Expand Up @@ -157,7 +157,7 @@ import os.path
unreleased_version_label = lambda: swrap(
(["bash"] if WIN32 else []) +
[os.path.join(".", "autogen.sh"), "--get-version"],
shell=False)
shell=False)



Expand Down Expand Up @@ -245,8 +245,8 @@ include_merge = True
#revs = [
# Caret(
# FileFirstRegexMatch(
# "CHANGELOG.rst",
# r"(?P<rev>[0-9]+\.[0-9]+\.[0-9]+)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n\n")),
# "CHANGELOG.rst",
# r"(?P<rev>[0-9]+\.[0-9]+\.[0-9]+)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n\n")),
# "HEAD"
#]
revs = []
4 changes: 2 additions & 2 deletions src/gitchangelog/gitchangelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ def curryfy(f):
"ucfirst", "strip"):
_config_env[_label] = locals()[_label]


##
## File
##
Expand Down Expand Up @@ -1331,6 +1330,7 @@ def render_commit(commit, opts=opts):
if len(version["sections"]) > 0:
yield render_version(version) + "\n\n"


## formatter engines

if pystache:
Expand Down Expand Up @@ -1427,7 +1427,7 @@ def stdout(content):
safe_print(chunk)
@available_in_config
def FileInsertAtFirstRegexMatch(filename, pattern, flags=0,
idx=lambda m: m.start()):
idx=lambda m: m.start()):

def write_content(f, content):
for content_line in content:
Expand Down

0 comments on commit b8bd6c6

Please sign in to comment.