Skip to content

Commit 1265410

Browse files
committed
Formatting and unused imports
1 parent 76b0a24 commit 1265410

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

awscli/customizations/configure/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13+
1314
from awscli.compat import shlex
1415

15-
# A map between the command line parameter name and the Python object name
16-
# For allowed sub-section types
1716
NOT_SET = '<not set>'
1817
PREDEFINED_SECTION_NAMES = 'plugins'
1918
# A map between the command line parameter name and the name used
@@ -48,6 +47,7 @@ class SectionNotFoundError(Exception):
4847
class SubsectionNotFoundError(Exception):
4948
pass
5049

50+
5151
def mask_value(current_value):
5252
if current_value is None:
5353
return 'None'

awscli/customizations/configure/get.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
1313
import logging
14-
import re
1514
import sys
1615

1716
from awscli.customizations.commands import BasicCommand
18-
from awscli.customizations.exceptions import ParamValidationError
1917
from awscli.customizations.utils import validate_mutually_exclusive
2018

21-
from . import PREDEFINED_SECTION_NAMES, SUBSECTION_TYPE_ALLOWLIST, SubsectionNotFoundError
19+
from . import (
20+
PREDEFINED_SECTION_NAMES,
21+
SUBSECTION_TYPE_ALLOWLIST,
22+
SubsectionNotFoundError,
23+
)
2224

2325
LOG = logging.getLogger(__name__)
2426

@@ -180,13 +182,17 @@ def _get_subsection_property(self, section_type, section_name, varname):
180182
full_config = self._session.full_config
181183

182184
if section_type not in full_config:
183-
raise SubsectionNotFoundError(f"The config sub-section ({section_name}) could not be found ")
185+
raise SubsectionNotFoundError(
186+
f"The config sub-section ({section_name}) could not be found"
187+
)
184188

185189
section_type_config = full_config[section_type]
186190
section_config = section_type_config.get(section_name, None)
187191

188192
if section_config is None:
189-
raise SubsectionNotFoundError(f"The config sub-section ({section_name}) could not be found ")
193+
raise SubsectionNotFoundError(
194+
f"The config sub-section ({section_name}) could not be found"
195+
)
190196

191197
# Handle nested properties
192198
if '.' in varname:

0 commit comments

Comments
 (0)