aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/release.py b/release.py
index 66350335..31cb64e4 100644
--- a/release.py
+++ b/release.py
@@ -13,6 +13,7 @@ try:
except AttributeError:
zip_longest = itertools.izip_longest
+
def before_upload():
_linkify('CHANGES.txt', 'CHANGES (links).txt')
_add_bootstrap_bookmark()
@@ -43,6 +44,7 @@ issue_urls = dict(
python='http://bugs.python.org/issue{python}',
)
+
def _linkify(source, dest):
pattern = '|'.join(link_patterns)
with open(source) as source:
@@ -50,6 +52,7 @@ def _linkify(source, dest):
with open(dest, 'w') as dest:
dest.write(out)
+
def replacer(match):
text = match.group(0)
match_dict = match.groupdict()