summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2010-10-23 13:53:35 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2010-10-23 13:53:35 +0200
commit8a43e7460fcb23dc1bfc8f903824639f218ad0c0 (patch)
tree7151b149842734ef8bde22c88f11c9637d0211bc /modules/clioptions_module.py
parentFix sys.path alteration to allow invocation from any directory (diff)
downloadgentoo-bumpchecker-8a43e7460fcb23dc1bfc8f903824639f218ad0c0.tar.gz
gentoo-bumpchecker-8a43e7460fcb23dc1bfc8f903824639f218ad0c0.tar.bz2
gentoo-bumpchecker-8a43e7460fcb23dc1bfc8f903824639f218ad0c0.zip
Fix various style issues
* Remove trailing whitespaces * Add some whitespace per PEP8 * Replace tabs by spaces in x-modular per PEP * Make Status class in package_module a new style object since it uses property methods
Diffstat (limited to 'modules/clioptions_module.py')
-rw-r--r--modules/clioptions_module.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/clioptions_module.py b/modules/clioptions_module.py
index 0020f7f..1175ac8 100644
--- a/modules/clioptions_module.py
+++ b/modules/clioptions_module.py
@@ -5,14 +5,14 @@
from optparse import OptionParser
class Options:
-
+
def __init__(self):
usage = "usage: %prog [-qkn] -o <filename> -r <release_number>"
self.parser = OptionParser(usage=usage)
self.setup_parser()
-
+
self.options = self.parser.parse_args()[0]
-
+
def setup_parser(self):
self.parser.add_option("-o", "--output", dest="output",
help="write report to FILE", metavar="FILE")
@@ -37,7 +37,7 @@ class Options:
self.parser.add_option("-a", "--overlay", metavar="OVERLAY",
action="append", dest="overlays", default=None,
help="Overlay to scan in addition to PORTDIR. Specify multiple times to scan more than one overlay.")
-
+
def get_arguments(self):
if (self.options.output == None):
self.parser.error("No output file")