Skip to content

Commit 08542a0

Browse files
Bruno P. Kinoshitajustindho
Bruno P. Kinoshita
authored andcommitted
Fix a few typos
1 parent 23fd6cd commit 08542a0

18 files changed

+22
-22
lines changed

awscli/alias.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def __init__(self, alias_name, alias_value, session, command_table,
160160
:param shadow_proxy_command: A built-in command that
161161
potentially shadows the alias in name. If the alias
162162
references this command in its value, the alias should proxy
163-
to this command as oppposed to proxy to itself in the command
163+
to this command as opposed to proxy to itself in the command
164164
table
165165
"""
166166
super(ServiceAliasCommand, self).__init__(alias_name, alias_value)

awscli/customizations/argrename.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
}
108108

109109
# Same format as ARGUMENT_RENAMES, but instead of renaming the arguments,
110-
# an alias is created to the original arugment and marked as undocumented.
110+
# an alias is created to the original argument and marked as undocumented.
111111
# This is useful when you need to change the name of an argument but you
112112
# still need to support the old argument.
113113
HIDDEN_ALIASES = {

awscli/customizations/awslambda.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ZipFileArgumentHoister(object):
5151
5252
Injects a top-level ZipFileArgument into the argument table which maps
5353
a --zip-file parameter to the underlying ``serialized_name`` ZipFile
54-
shape. Repalces the old ZipFile argument with an instance of
54+
shape. Replaces the old ZipFile argument with an instance of
5555
ReplacedZipFileArgument to prevent its usage and recommend the new
5656
top-level injected parameter.
5757
"""
@@ -104,7 +104,7 @@ class ZipFileArgument(CustomArgument):
104104
This class injects a ZipFile argument under the specified serialized_name
105105
parameter. This can be used to take a top level parameter like --zip-file
106106
and inject it into a nested different parameter like Code so
107-
--zip-file foo.zip winds up being serilized as
107+
--zip-file foo.zip winds up being serialized as
108108
{ 'Code': { 'ZipFile': <contents of foo.zip> } }.
109109
"""
110110
def __init__(self, *args, **kwargs):

awscli/customizations/cloudformation/yamlhelper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def intrinsics_multi_constructor(loader, tag_prefix, node):
2323
"""
2424
YAML constructor to parse CloudFormation intrinsics.
25-
This will return a dictionary with key being the instrinsic name
25+
This will return a dictionary with key being the intrinsic name
2626
"""
2727

2828
# Get the actual tag name excluding the first exclamation

awscli/customizations/cloudfront.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class PathsArgument(CustomArgument):
7575
def __init__(self):
7676
doc = (
7777
'The space-separated paths to be invalidated.'
78-
' Note: --invalidation-batch and --paths are mututally exclusive.'
78+
' Note: --invalidation-batch and --paths are mutually exclusive.'
7979
)
8080
super(PathsArgument, self).__init__('paths', nargs='+', help_text=doc)
8181

@@ -88,7 +88,7 @@ def add_to_params(self, parameters, value):
8888

8989

9090
class ExclusiveArgument(CustomArgument):
91-
DOC = '%s This argument and --%s are mututally exclusive.'
91+
DOC = '%s This argument and --%s are mutually exclusive.'
9292

9393
def __init__(self, name, argument_table,
9494
exclusive_to='distribution-config', help_text=''):

awscli/customizations/configservice/subscribe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def add_subscribe(command_table, session, **kwargs):
4949

5050
class SubscribeCommand(BasicCommand):
5151
NAME = 'subscribe'
52-
DESCRIPTION = ('Subcribes user to AWS Config by creating an AWS Config '
52+
DESCRIPTION = ('Subscribes user to AWS Config by creating an AWS Config '
5353
'delivery channel and configuration recorder to track '
5454
'AWS resource configurations. The names of the default '
5555
'channel and configuration recorder will be default.')

awscli/customizations/configure/addmodel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_model_location(session, service_definition, service_name=None):
6060
and the service definition.
6161
6262
:returns: The path to where are model should be placed based on
63-
the service defintion and the current services in botocore.
63+
the service definition and the current services in botocore.
6464
"""
6565
# Add the ServiceModel abstraction over the service json definition to
6666
# make it easier to work with.

awscli/customizations/emr/helptext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
' with a KDC in a different realm. This is the cross-realm principal password,'
418418
' which must be identical across realms.</li>'
419419
' <li><code>ADDomainJoinUser</code> - Required when establishing trust with an Active Directory'
420-
' domain. This is the User logon name of an AD account with sufficient privileges to join resouces to the domain.</li>'
420+
' domain. This is the User logon name of an AD account with sufficient privileges to join resources to the domain.</li>'
421421
' <li><code>ADDomainJoinPassword</code> - The AD password for <code>ADDomainJoinUser</code>.</li>')
422422

423423
# end create-cluster options help descriptions

awscli/customizations/history/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _should_enable_cli_history(session, parsed_args):
6868
scoped_config = session.get_scoped_config()
6969
except ProfileNotFound:
7070
# If the profile does not exist, cli history is definitely not
71-
# enabled, but don't let the error get propogated as commands down
71+
# enabled, but don't let the error get propagated as commands down
7272
# the road may handle this such as the configure set command with
7373
# a --profile flag set.
7474
return False

awscli/customizations/history/show.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def _pformat_http_body(self, body, event_record):
278278
elif self._is_xml(body):
279279
# TODO: Figure out a way to minimize the number of times we have
280280
# to parse the XML. Currently at worst, it will take three times.
281-
# One to determine if it is XML, another to stip whitespace, and
281+
# One to determine if it is XML, another to strip whitespace, and
282282
# a third to convert to make it pretty. This is an issue as it
283283
# can cause issues when there are large XML payloads such as
284284
# an s3 ListObjects call.

awscli/customizations/paginate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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-
"""This module has customizations to unify paging paramters.
13+
"""This module has customizations to unify paging parameters.
1414
1515
For any operation that can be paginated, we will:
1616

awscli/customizations/s3/fileformat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ def local_format(self, path, dir_op):
6262
"""
6363
This function formats the path of local files and returns whether the
6464
destination will keep its own name or take the source's name along with
65-
the editted path.
65+
the edited path.
6666
Formatting Rules:
6767
1) If a destination file is taking on a source name, it must end
68-
with the appropriate operating system seperator
68+
with the appropriate operating system separator
6969
7070
General Options:
7171
1) If the operation is on a directory, the destination file will

awscli/customizations/s3/filegenerator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _safely_get_file_stats(self, file_path):
221221
return file_path, {'Size': size, 'LastModified': last_update}
222222

223223
def _validate_update_time(self, update_time, path):
224-
# If the update time is None we know we ran into an invalid tiemstamp.
224+
# If the update time is None we know we ran into an invalid timestamp.
225225
if update_time is None:
226226
warning = create_warning(
227227
path=path,
@@ -234,7 +234,7 @@ def _validate_update_time(self, update_time, path):
234234

235235
def normalize_sort(self, names, os_sep, character):
236236
"""
237-
The purpose of this function is to ensure that the same path seperator
237+
The purpose of this function is to ensure that the same path separator
238238
is used when sorting. In windows, the path operator is a backslash as
239239
opposed to a forward slash which can lead to differences in sorting
240240
between s3 and a windows machine.

awscli/customizations/s3/fileinfo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class FileInfo(object):
2222
:param dest: the destination path
2323
:type dest: string
2424
:param compare_key: the name of the file relative to the specified
25-
directory/prefix. This variable is used when performing synching
25+
directory/prefix. This variable is used when performing syncing
2626
or if the destination file is adopting the source file's name.
2727
:type compare_key: string
2828
:param size: The size of the file in bytes.

awscli/customizations/s3/filters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Filter(object):
7979
"""
8080
def __init__(self, patterns, rootdir, dst_rootdir):
8181
"""
82-
:var patterns: A list of patterns. A pattern consits of a list
82+
:var patterns: A list of patterns. A pattern consists of a list
8383
whose first member is a string 'exclude' or 'include'.
8484
The second member is the actual rule.
8585
:var rootdir: The root directory where the patterns are evaluated.

awscli/customizations/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _handler(parsed_args, **kwargs):
114114

115115

116116
def validate_mutually_exclusive(parsed_args, *groups):
117-
"""Validate mututally exclusive groups in the parsed args."""
117+
"""Validate mutually exclusive groups in the parsed args."""
118118
args_dict = vars(parsed_args)
119119
all_args = set(arg for group in groups for arg in group)
120120
if not any(k in all_args for k in args_dict if args_dict[k] is not None):

awscli/topictags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TopicTagDB(object):
4343
awscli/topics. Note that tags can have multiple values by delimiting
4444
values with commas. All tags must be on their own line in the file.
4545
46-
This class can load a JSON index represeting all topics and their tags,
46+
This class can load a JSON index representing all topics and their tags,
4747
scan all of the topics and store the values of their tags, retrieve the
4848
tag value for a particular topic, query for all the topics with a specific
4949
tag and/or value, and save the loaded data back out to a JSON index.

bin/aws_zsh_completer.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# https://github.com/zsh-users/zsh/commit/edab1d3dbe61da7efe5f1ac0e40444b2ec9b9570
1313
#
14-
# zsh relases prior to that version do not export the required env variables!
14+
# zsh releases prior to that version do not export the required env variables!
1515

1616
autoload -Uz bashcompinit
1717
bashcompinit -i

0 commit comments

Comments
 (0)