diff options
author | Steve Martinelli <stevemar@ca.ibm.com> | 2014-06-16 02:08:59 -0400 |
---|---|---|
committer | Steve Martinelli <stevemar@ca.ibm.com> | 2014-06-19 22:14:47 -0400 |
commit | 1c64e5c1f73b9968002741bb6ac96a2518b2b6f7 (patch) | |
tree | fa93cdacb5e358e05c23bc64566c39d50911239c /keystoneclient/v2_0 | |
parent | b2a0c5bc8238f8c180c05d9c250288854e8a1070 (diff) | |
download | python-keystoneclient-1c64e5c1f73b9968002741bb6ac96a2518b2b6f7.tar.gz |
Update keystoneclient code to account for hacking 0.9.2
Fixed most of the errors reported back from hacking 0.9.2.
Specifically:
- E128 continuation line under-indented for visual indent
- E251 unexpected spaces around keyword / parameter equals
- E265 block comment should start with '# '
- H305 imports not grouped correctly
- H307 like imports should be grouped together
- H402 one line docstring needs punctuation
- H904 Wrap long lines in parentheses instead of a backslash
But opted to ignore the following for now:
- E122: continuation line missing indentation or outdented
- H405: multi line docstring summary not separated with an empty line
Change-Id: Ib8e698d85fd598fa91435538657361a1f695ce89
Diffstat (limited to 'keystoneclient/v2_0')
-rwxr-xr-x | keystoneclient/v2_0/shell.py | 2 | ||||
-rw-r--r-- | keystoneclient/v2_0/tenants.py | 4 | ||||
-rw-r--r-- | keystoneclient/v2_0/users.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/keystoneclient/v2_0/shell.py b/keystoneclient/v2_0/shell.py index 297bdb9..5d8d265 100755 --- a/keystoneclient/v2_0/shell.py +++ b/keystoneclient/v2_0/shell.py @@ -87,7 +87,7 @@ def do_user_get(kc, args): @utils.arg('--enabled', metavar='<true|false>', default=True, help='Initial user enabled status. Default is true.') def do_user_create(kc, args): - """Create new user""" + """Create new user.""" if args.tenant: tenant_id = utils.find_resource(kc.tenants, args.tenant).id elif args.tenant_id: diff --git a/keystoneclient/v2_0/tenants.py b/keystoneclient/v2_0/tenants.py index 46bce56..cee37d1 100644 --- a/keystoneclient/v2_0/tenants.py +++ b/keystoneclient/v2_0/tenants.py @@ -81,7 +81,7 @@ class TenantManager(base.ManagerWithFind): "description": description, "enabled": enabled}} - #Allow Extras Passthru and ensure we don't clobber primary arguments. + # Allow Extras Passthru and ensure we don't clobber primary arguments. for k, v in six.iteritems(kwargs): if k not in params['tenant']: params['tenant'][k] = v @@ -131,7 +131,7 @@ class TenantManager(base.ManagerWithFind): if description is not None: body['tenant']['description'] = description - #Allow Extras Passthru and ensure we don't clobber primary arguments. + # Allow Extras Passthru and ensure we don't clobber primary arguments. for k, v in six.iteritems(kwargs): if k not in body['tenant']: body['tenant'][k] = v diff --git a/keystoneclient/v2_0/users.py b/keystoneclient/v2_0/users.py index 4ce10b2..57f036e 100644 --- a/keystoneclient/v2_0/users.py +++ b/keystoneclient/v2_0/users.py @@ -20,7 +20,7 @@ from keystoneclient import base class User(base.Resource): - """Represents a Keystone user""" + """Represents a Keystone user.""" def __repr__(self): return "<User %s>" % self._info |