From 011f0c3c3a20ebb95c0bda8df52f1d2844db1e7b Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 23 Jul 2014 20:20:02 +0200 Subject: 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 --- pycadf/audit/api.py | 4 ++-- pycadf/geolocation.py | 4 ++-- pycadf/metric.py | 4 ++-- pycadf/reporterstep.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'pycadf') 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 ] -- cgit v1.2.1