commit:     d0a0de7291f68220daded2dee8cb6e8fbbc2fee0
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  6 14:37:09 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct  6 14:37:09 2015 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=d0a0de72

version: use the passed in value

The get_git_version function takes a |version| argument, but doesn't
actually use it, which makes calls to the function with a version do
nothing.  Tweak the function to use the arg in the way it looks like
it intended.

 catalyst/version.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catalyst/version.py b/catalyst/version.py
index 5deb4d7..3b82988 100644
--- a/catalyst/version.py
+++ b/catalyst/version.py
@@ -31,7 +31,7 @@ def get_git_version(version=__version__):
                s = ('vcs version %s, date %s' %
                         (version_info['rev'], version_info['date']))
 
-       _ver = 'Catalyst %s\n%s' % (__version__, s)
+       _ver = 'Catalyst %s\n%s' % (version, s)
 
        return _ver
 

Reply via email to