From 1e2627ba3ca8d838db11abb6a214def09edec153 Mon Sep 17 00:00:00 2001 From: Cody Maloney Date: Mon, 21 Nov 2016 21:51:36 -0800 Subject: [PATCH] Add some missing newlines between import sections (#841) Builtin, third party, and first party are all supposed to have a newline between them. Most of the codebase was doing this, but some had snuck through. This updates those ones to follow the coding style. These are caught by recent changes in the code style checking plugin making it more strict / accurate. --- cli/dcoscli/tables.py | 1 + cli/dcoscli/util.py | 1 + dcos/config.py | 1 + dcos/marathon.py | 1 + dcos/subcommand.py | 1 + setup.py | 1 + 6 files changed, 6 insertions(+) diff --git a/cli/dcoscli/tables.py b/cli/dcoscli/tables.py index a27f06d..fa7e016 100644 --- a/cli/dcoscli/tables.py +++ b/cli/dcoscli/tables.py @@ -4,6 +4,7 @@ import posixpath from collections import OrderedDict import prettytable + from dcos import mesos, util EMPTY_ENTRY = '---' diff --git a/cli/dcoscli/util.py b/cli/dcoscli/util.py index 9b3ede4..68019b0 100644 --- a/cli/dcoscli/util.py +++ b/cli/dcoscli/util.py @@ -1,6 +1,7 @@ from functools import wraps import docopt + from dcos import emitting emitter = emitting.FlatEmitter() diff --git a/dcos/config.py b/dcos/config.py index 2ab8536..1c2cc3b 100644 --- a/dcos/config.py +++ b/dcos/config.py @@ -7,6 +7,7 @@ import sys import pkg_resources import toml + from dcos import constants, jsonitem, subcommand, util from dcos.errors import DCOSException diff --git a/dcos/marathon.py b/dcos/marathon.py index 3893d39..ff7dbb4 100644 --- a/dcos/marathon.py +++ b/dcos/marathon.py @@ -1,4 +1,5 @@ import json + import jsonschema import pkg_resources diff --git a/dcos/subcommand.py b/dcos/subcommand.py index a476d78..8eef9ab 100644 --- a/dcos/subcommand.py +++ b/dcos/subcommand.py @@ -12,6 +12,7 @@ import zipfile from distutils.version import LooseVersion import requests + from dcos import constants, util from dcos.errors import DCOSException from dcos.subprocess import Subproc diff --git a/setup.py b/setup.py index e363a35..e32206b 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ from codecs import open from os import path + from setuptools import find_packages, setup import dcos