From 7d878fec7b4375a7ecd5a67d3765076ba453d6cb Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 20 Feb 2014 19:59:22 +0100 Subject: [PATCH] version string cosmetic fixes --- qutebrowser/utils/version.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py index 39db9ea2a..2515ced6e 100644 --- a/qutebrowser/utils/version.py +++ b/qutebrowser/utils/version.py @@ -88,6 +88,12 @@ def version(): lines = [ 'qutebrowser v{}'.format(qutebrowser.__version__), + ] + + if gitver is not None: + lines.append('Git commit: {}'.format(gitver)) + + lines += [ '', '{} {}'.format(platform.python_implementation(), platform.python_version()), @@ -114,9 +120,5 @@ def version(): if releaseinfo is not None: for (fn, data) in releaseinfo: lines += ['', '--- {} ---'.format(fn), data] - lines.append('') - - if gitver is not None: - lines.append('Git commit: {}'.format(gitver)) return '\n'.join(lines)