summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Options/Options.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-08-09 16:45:45 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-08-09 16:45:45 -0400
commit0f7edd60e67d32438a8be42002faacde4e4a7649 (patch)
tree2b11b02f5bf4f9e7a6e609136bf2a19c8f166cc4 /src/lib/Bcfg2/Options/Options.py
parentcc11ada6b8871d7719fd0ea8a2ff382bba8a3bc2 (diff)
downloadbcfg2-0f7edd60e67d32438a8be42002faacde4e4a7649.tar.gz
bcfg2-0f7edd60e67d32438a8be42002faacde4e4a7649.tar.bz2
bcfg2-0f7edd60e67d32438a8be42002faacde4e4a7649.zip
testsuite: fixed most pylint complaints
Diffstat (limited to 'src/lib/Bcfg2/Options/Options.py')
-rw-r--r--src/lib/Bcfg2/Options/Options.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Options/Options.py b/src/lib/Bcfg2/Options/Options.py
index ca0261907..d60c536cf 100644
--- a/src/lib/Bcfg2/Options/Options.py
+++ b/src/lib/Bcfg2/Options/Options.py
@@ -4,7 +4,7 @@ need to be associated with an option parser; it exists on its own."""
import os
import copy
-import Types
+import Types # pylint: disable=W0403
import fnmatch
import argparse
from Bcfg2.Compat import ConfigParser
@@ -15,7 +15,7 @@ __all__ = ["Option", "BooleanOption", "PathOption", "PositionalArgument"]
#: A dict that records a mapping of argparse action name (e.g.,
#: "store_true") to the argparse Action class for it. See
#: :func:`_get_action_class`
-_action_map = dict()
+_action_map = dict() # pylint: disable=C0103
def _get_action_class(action_name):
@@ -82,7 +82,7 @@ class Option(object):
#: The tuple giving the section and option name for this
#: option in the config file
- self.cf = None
+ self.cf = None # pylint: disable=C0103
#: The environment variable that this option can take its
#: value from
@@ -214,9 +214,11 @@ class Option(object):
self.default = val
def _get_default(self):
+ """ Getter for the ``default`` property """
return self._default
def _set_default(self, value):
+ """ Setter for the ``default`` property """
self._default = value
for action in self.actions.values():
action.default = value
@@ -225,9 +227,11 @@ class Option(object):
default = property(_get_default, _set_default)
def _get_dest(self):
+ """ Getter for the ``dest`` property """
return self._dest
def _set_dest(self, value):
+ """ Setter for the ``dest`` property """
self._dest = value
for action in self.actions.values():
action.dest = value