summaryrefslogtreecommitdiff
path: root/archey3
diff options
context:
space:
mode:
authorrski <rski@intracom-telecom.com>2016-01-21 15:21:41 +0200
committerrski <rski@intracom-telecom.com>2016-01-21 15:29:35 +0200
commit27fb52e3195c250b6c2b2d04a61ca8598ed2ae53 (patch)
tree8ecd07a752a849c21c2d31ce2697f3082e11c3d8 /archey3
parentd40169b377399c7ecb261f31425d0408965e314a (diff)
This fixes version to conform to pep 396
Version should be specified in __version__ instead of in the comment where it was. It also makes the --version flag read __version__, as it also had an (older) version number hardcoded.
Diffstat (limited to 'archey3')
-rwxr-xr-xarchey36
1 files changed, 4 insertions, 2 deletions
diff --git a/archey3 b/archey3
index 2781fac..caf41e6 100755
--- a/archey3
+++ b/archey3
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# archey3 [version 0.5]
+# archey3
#
# Copyright 2010 Melik Manukyan <melik@archlinux.us>
# Copyright 2010-2012 Laurie Clark-Michalek <bluepeppers@archlinux.us>
@@ -10,6 +10,8 @@
# Simple python script to display an Archlinux logo in ASCII art
# Along with basic system information.
+__version__ = "0.5"
+
# Import libraries
import collections
import subprocess, optparse, re, sys, configparser
@@ -825,7 +827,7 @@ def main():
usage='%prog',
description="""%prog is a utility to display system info and take\
screenshots""",
- version="%prog 0.3")
+ version="%prog {version}".format(version=__version__))
parser.add_option('-c', '--color',
action='store', type='choice', dest='color',
choices=('black',