diff options
Diffstat (limited to 'release.py')
-rw-r--r-- | release.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() |