summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Server')
-rw-r--r--src/lib/Bcfg2/Server/Lint/ValidateJSON.py3
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Ohai.py3
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Yum.py3
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Probes.py3
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Properties.py3
5 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/ValidateJSON.py b/src/lib/Bcfg2/Server/Lint/ValidateJSON.py
index 31bbadeb2..1f55962eb 100644
--- a/src/lib/Bcfg2/Server/Lint/ValidateJSON.py
+++ b/src/lib/Bcfg2/Server/Lint/ValidateJSON.py
@@ -10,7 +10,8 @@ import Bcfg2.Server.Lint
try:
import json
- json.loads # py2.4 json library is structured differently
+ # py2.4 json library is structured differently
+ json.loads # pylint: disable=W0104
except (ImportError, AttributeError):
import simplejson as json
diff --git a/src/lib/Bcfg2/Server/Plugins/Ohai.py b/src/lib/Bcfg2/Server/Plugins/Ohai.py
index f5bde1820..0853ea993 100644
--- a/src/lib/Bcfg2/Server/Plugins/Ohai.py
+++ b/src/lib/Bcfg2/Server/Plugins/Ohai.py
@@ -10,7 +10,8 @@ import Bcfg2.Server.Plugin
try:
import json
- json.loads # py2.4 json library is structured differently
+ # py2.4 json library is structured differently
+ json.loads # pylint: disable=W0104
except (ImportError, AttributeError):
import simplejson as json
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
index 43a54471c..f038ec9c0 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
@@ -87,7 +87,8 @@ try:
import yum
try:
import json
- json.loads # py2.4 json library is structured differently
+ # py2.4 json library is structured differently
+ json.loads # pylint: disable=W0104
except (ImportError, AttributeError):
import simplejson as json
HAS_YUM = True
diff --git a/src/lib/Bcfg2/Server/Plugins/Probes.py b/src/lib/Bcfg2/Server/Plugins/Probes.py
index 471ebfdaf..48be1ac26 100644
--- a/src/lib/Bcfg2/Server/Plugins/Probes.py
+++ b/src/lib/Bcfg2/Server/Plugins/Probes.py
@@ -34,7 +34,8 @@ except ImportError:
try:
import json
- json.loads # py2.4 json library is structured differently
+ # py2.4 json library is structured differently
+ json.loads # pylint: disable=W0104
HAS_JSON = True
except (ImportError, AttributeError):
try:
diff --git a/src/lib/Bcfg2/Server/Plugins/Properties.py b/src/lib/Bcfg2/Server/Plugins/Properties.py
index b6090c4d1..8c6cf799a 100644
--- a/src/lib/Bcfg2/Server/Plugins/Properties.py
+++ b/src/lib/Bcfg2/Server/Plugins/Properties.py
@@ -17,7 +17,8 @@ except ImportError:
try:
import json
- json.loads # py2.4 json library is structured differently
+ # py2.4 json library is structured differently
+ json.loads # pylint: disable=W0104
HAS_JSON = True
except (ImportError, AttributeError):
try: