diff options
| author | Sean McGinnis <sean.mcginnis@gmail.com> | 2018-04-10 14:32:33 -0500 |
|---|---|---|
| committer | Akihiro Motoki <amotoki@gmail.com> | 2018-04-15 12:23:06 +0900 |
| commit | d60141525987bc973802b4ec9a3b027e071d1966 (patch) | |
| tree | e04fe55e35c2291f7993d34f58c1882d29303568 /openstackclient/image | |
| parent | 972a345014a177b0db83272f609ae28a5b23cf68 (diff) | |
| download | python-openstackclient-d60141525987bc973802b4ec9a3b027e071d1966.tar.gz | |
Clean up W503 and E402 pep8 errors
pycodestyle 2.40 and later enforce these rules that were not previously
enforced. Rather than just skipping them, this cleans up the trivial
instances of these violations.
This does also include some other updates that were not triggering errors
in an attempt to keep some of the style consistent.
Change-Id: Id7c0a6b8f1f835e69d844b000e3ed751852ada63
Closes-bug: #1762803
Diffstat (limited to 'openstackclient/image')
| -rw-r--r-- | openstackclient/image/v1/image.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openstackclient/image/v1/image.py b/openstackclient/image/v1/image.py index 7a8e67bf..7ecaa3ef 100644 --- a/openstackclient/image/v1/image.py +++ b/openstackclient/image/v1/image.py @@ -21,11 +21,6 @@ import logging import os import sys -if os.name == "nt": - import msvcrt -else: - msvcrt = None - from glanceclient.common import utils as gc_utils from osc_lib.cli import parseractions from osc_lib.command import command @@ -35,6 +30,11 @@ import six from openstackclient.api import utils as api_utils from openstackclient.i18n import _ +if os.name == "nt": + import msvcrt +else: + msvcrt = None + CONTAINER_CHOICES = ["ami", "ari", "aki", "bare", "docker", "ova", "ovf"] DEFAULT_CONTAINER_FORMAT = 'bare' |
