From b9df42ad1340007eec4b796cd53a3c36dda859a4 2016-01-27 20:40:23 From: Thomas Kluyver Date: 2016-01-27 20:40:23 Subject: [PATCH] Merge pull request #9187 from Carreau/2fa Update 2fa script a bit more + generate 4.1 changelog. --- diff --git a/tools/gh_api.py b/tools/gh_api.py index 9d7a7d5..de3fbf3 100644 --- a/tools/gh_api.py +++ b/tools/gh_api.py @@ -17,7 +17,7 @@ import json try: import requests_cache except ImportError: - print("no cache", file=sys.stderr) + print("cache not available, install `requests_cache` for caching.", file=sys.stderr) else: requests_cache.install_cache("gh_api", expire_after=3600) diff --git a/tools/github_stats.py b/tools/github_stats.py index e170887..fe76aff 100755 --- a/tools/github_stats.py +++ b/tools/github_stats.py @@ -212,8 +212,7 @@ if __name__ == "__main__": print("We closed %d issues and merged %d pull requests." % (n_issues, n_pulls)) if milestone: - print("The full list can be seen `on GitHub `__" - % (project, milestone) + print("The full list can be seen `on GitHub `__".format(project=project,milestone=milestone) ) print()