From 7168a6c874c1c0e4cffb6c1e29eeda322051def7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Tue, 29 Mar 2016 03:05:15 +0600 Subject: [PATCH] [devscripts/make_issue_template] Fix __version__ again --- devscripts/make_issue_template.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/devscripts/make_issue_template.py b/devscripts/make_issue_template.py index eed4b3a00..b7ad23d83 100644 --- a/devscripts/make_issue_template.py +++ b/devscripts/make_issue_template.py @@ -16,13 +16,11 @@ def main(): with io.open(infile, encoding='utf-8') as inf: issue_template_tmpl = inf.read() - __version__ = None - # Get the version from youtube_dl/version.py without importing the package exec(compile(open('youtube_dl/version.py').read(), 'youtube_dl/version.py', 'exec')) - out = issue_template_tmpl % {'version': __version__} + out = issue_template_tmpl % {'version': locals()['__version__']} with io.open(outfile, 'w', encoding='utf-8') as outf: outf.write(out) -- 2.39.5