summaryrefslogtreecommitdiff
path: root/pycadf
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2014-07-23 20:20:02 +0200
committerChristian Berendt <berendt@b1-systems.de>2014-08-01 19:51:48 +0000
commit011f0c3c3a20ebb95c0bda8df52f1d2844db1e7b (patch)
treec1a685b178be0adb831e882ffdce33d76e908e6a /pycadf
parented95886b42a3a5afc096b7377dcd228dd0ace0dd (diff)
downloadpycadf-011f0c3c3a20ebb95c0bda8df52f1d2844db1e7b.tar.gz
Enable PEP8 checks E128, E251 and E265
* E128 continuation line under-indented for visual indent * E251 unexpected spaces around keyword / parameter equals * E265 block comment should start with '# ' Change-Id: Ie4b7d8a392c8e8bed58c171b5fc1b9db308036bc
Diffstat (limited to 'pycadf')
-rw-r--r--pycadf/audit/api.py4
-rw-r--r--pycadf/geolocation.py4
-rw-r--r--pycadf/metric.py4
-rw-r--r--pycadf/reporterstep.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/pycadf/audit/api.py b/pycadf/audit/api.py
index 411e1a9..ca92b21 100644
--- a/pycadf/audit/api.py
+++ b/pycadf/audit/api.py
@@ -36,7 +36,7 @@ from pycadf import resource
from pycadf import tag
from pycadf import timestamp
-#NOTE(gordc): remove cfg once we move over to this middleware version
+# NOTE(gordc): remove cfg once we move over to this middleware version
CONF = cfg.CONF
opts = [cfg.StrOpt('api_audit_map',
default='api_audit_map.conf',
@@ -114,7 +114,7 @@ class OpenStackAuditApi(object):
Service = collections.namedtuple('Service',
['id', 'name', 'type', 'admin_endp',
- 'public_endp', 'private_endp'])
+ 'public_endp', 'private_endp'])
def __init__(self, map_file=None):
if map_file is None:
diff --git a/pycadf/geolocation.py b/pycadf/geolocation.py
index fcbaee9..e9146a7 100644
--- a/pycadf/geolocation.py
+++ b/pycadf/geolocation.py
@@ -32,7 +32,7 @@ GEO_KEYNAME_ACCURACY = "accuracy"
GEO_KEYNAME_CITY = "city"
GEO_KEYNAME_STATE = "state"
GEO_KEYNAME_REGIONICANN = "regionICANN"
-#GEO_KEYNAME_ANNOTATIONS = "annotations"
+# GEO_KEYNAME_ANNOTATIONS = "annotations"
GEO_KEYNAMES = [GEO_KEYNAME_ID,
GEO_KEYNAME_LATITUDE,
@@ -42,7 +42,7 @@ GEO_KEYNAMES = [GEO_KEYNAME_ID,
GEO_KEYNAME_CITY,
GEO_KEYNAME_STATE,
GEO_KEYNAME_REGIONICANN
- #GEO_KEYNAME_ANNOTATIONS
+ # GEO_KEYNAME_ANNOTATIONS
]
diff --git a/pycadf/metric.py b/pycadf/metric.py
index e0f5fa5..817178c 100644
--- a/pycadf/metric.py
+++ b/pycadf/metric.py
@@ -27,12 +27,12 @@ TYPE_URI_METRIC = cadftype.CADF_VERSION_1_0_0 + 'metric'
METRIC_KEYNAME_METRICID = "metricId"
METRIC_KEYNAME_UNIT = "unit"
METRIC_KEYNAME_NAME = "name"
-#METRIC_KEYNAME_ANNOTATIONS = "annotations"
+# METRIC_KEYNAME_ANNOTATIONS = "annotations"
METRIC_KEYNAMES = [METRIC_KEYNAME_METRICID,
METRIC_KEYNAME_UNIT,
METRIC_KEYNAME_NAME
- #METRIC_KEYNAME_ANNOTATIONS
+ # METRIC_KEYNAME_ANNOTATIONS
]
diff --git a/pycadf/reporterstep.py b/pycadf/reporterstep.py
index 232cf2e..159a7e6 100644
--- a/pycadf/reporterstep.py
+++ b/pycadf/reporterstep.py
@@ -24,13 +24,13 @@ REPORTERSTEP_KEYNAME_ROLE = "role"
REPORTERSTEP_KEYNAME_REPORTER = "reporter"
REPORTERSTEP_KEYNAME_REPORTERID = "reporterId"
REPORTERSTEP_KEYNAME_REPORTERTIME = "reporterTime"
-#REPORTERSTEP_KEYNAME_ATTACHMENTS = "attachments"
+# REPORTERSTEP_KEYNAME_ATTACHMENTS = "attachments"
REPORTERSTEP_KEYNAMES = [REPORTERSTEP_KEYNAME_ROLE,
REPORTERSTEP_KEYNAME_REPORTER,
REPORTERSTEP_KEYNAME_REPORTERID,
REPORTERSTEP_KEYNAME_REPORTERTIME,
- #REPORTERSTEP_KEYNAME_ATTACHMENTS
+ # REPORTERSTEP_KEYNAME_ATTACHMENTS
]