From 502586b48e5550ec2194ebc65988e183bf272cba Mon Sep 17 00:00:00 2001 From: Ricardo Gonzaga Date: Thu, 19 Oct 2017 05:32:44 -0700 Subject: [PATCH] Fix general typos --- CHANGELOG.md | 4 ++-- docs/advanced.rst | 2 +- example/authmodule.py | 2 +- zappa/async.py | 2 +- zappa/cli.py | 6 +++--- zappa/core.py | 4 ++-- zappa/handler.py | 2 +- zappa/middleware.py | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cccb5a96e..3b9765697 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -244,7 +244,7 @@ from nikbora ## 0.28.1 * Add "global" mode to init. Expect a blog post soon! -* Small refactors and dependancy upgrades. +* Small refactors and dependency upgrades. ## 0.28.0 * `--json` for machine readable status output @@ -268,7 +268,7 @@ from nikbora * Remove many hacks using new API Gateway features. * Closes #303, #363, #361 * See the [blog post](https://blog.zappa.io/posts/unhacking-zappa-with-new-apigateway-features) for more details! -* Bump dependancies - make sure you reinstall your requirements! +* Bump dependencies - make sure you reinstall your requirements! * Improved stack update handling. ### 0.26.1 (Never Published) diff --git a/docs/advanced.rst b/docs/advanced.rst index bcaae7b09..49f14ce2b 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -115,7 +115,7 @@ Obviously, this only works for Django projects which have their settings properl Keeping The Server Warm ======================= -Zappa will automatically set up a regularly occuring execution of your application in order to keep the Lambda function warm. This can be disabled via the 'keep_warm' setting. +Zappa will automatically set up a regularly occurring execution of your application in order to keep the Lambda function warm. This can be disabled via the 'keep_warm' setting. Enabling CORS ============= diff --git a/example/authmodule.py b/example/authmodule.py index 6cbd81f84..5415ecaae 100644 --- a/example/authmodule.py +++ b/example/authmodule.py @@ -29,7 +29,7 @@ def lambda_handler(event, context): """if the token is valid, a policy must be generated which will allow or deny access to the client""" - """if access is denied, the client will recieve a 403 Access Denied response""" + """if access is denied, the client will receive a 403 Access Denied response""" """if access is allowed, API Gateway will proceed with the backend integration configured on the method that was called""" """this function must generate a policy that is associated with the recognized principal user identifier.""" diff --git a/zappa/async.py b/zappa/async.py index 8782d9783..490f43499 100644 --- a/zappa/async.py +++ b/zappa/async.py @@ -65,7 +65,7 @@ def my_async_func(*args, **kwargs): 5. The new lambda instance is invoked with the message above, and Zappa runs its usual bootstrapping context, and inside - zappa.handler, the existance of the 'command' key in the message + zappa.handler, the existence of the 'command' key in the message dispatches the full message to zappa.async.route_lambda_task, which in turn calls `run_message(message)` diff --git a/zappa/cli.py b/zappa/cli.py index 60d85a58b..93395689c 100644 --- a/zappa/cli.py +++ b/zappa/cli.py @@ -1228,8 +1228,8 @@ def invoke(self, function_name, raw_python=False, command=None, no_color=False): print(base64.b64decode(response['LogResult'])) else: decoded = base64.b64decode(response['LogResult']).decode() - formated = self.format_invoke_command(decoded) - colorized = self.colorize_invoke_command(formated) + formatted = self.format_invoke_command(decoded) + colorized = self.colorize_invoke_command(formatted) print(colorized) else: print(response) @@ -1410,7 +1410,7 @@ def tabular_print(title, value): status_dict["API Gateway x-api-key"] = api_key # There literally isn't a better way to do this. - # AWS provides no way to tie a APIGW domain name to its Lambda funciton. + # AWS provides no way to tie a APIGW domain name to its Lambda function. domain_url = self.stage_config.get('domain', None) if domain_url: status_dict["Domain URL"] = 'https://' + domain_url diff --git a/zappa/core.py b/zappa/core.py index 44325efcd..f86f1c964 100644 --- a/zappa/core.py +++ b/zappa/core.py @@ -777,7 +777,7 @@ def get_manylinux_wheel_url(self, package_name, package_version): This function downloads metadata JSON of `package_name` from Pypi and examines if the package has a manylinux wheel. This function also caches the JSON file so that we don't have to poll Pypi - everytime. + every time. """ cached_pypi_info_dir = os.path.join(tempfile.gettempdir(), 'cached_pypi_info') if not os.path.isdir(cached_pypi_info_dir): @@ -2640,7 +2640,7 @@ def remove_dns_challenge_txt(self, zone_id, domain, txt_challenge): @staticmethod def get_dns_challenge_change_batch(action, domain, txt_challenge): """ - Given action, domain and challege, return a change batch to use with + Given action, domain and challenge, return a change batch to use with route53 call. :param action: DELETE | UPSERT diff --git a/zappa/handler.py b/zappa/handler.py index 2ee463d99..f6021a7f0 100644 --- a/zappa/handler.py +++ b/zappa/handler.py @@ -351,7 +351,7 @@ def handler(self, event, context): # This is a direct, raw python invocation. # It's _extremely_ important we don't allow this event source - # to be overriden by unsanitized, non-admin user input. + # to be overridden by unsanitized, non-admin user input. elif event.get('raw_command', None): raw_command = event['raw_command'] diff --git a/zappa/middleware.py b/zappa/middleware.py index 724fb6f72..71203f820 100644 --- a/zappa/middleware.py +++ b/zappa/middleware.py @@ -5,7 +5,7 @@ def all_casings(input_string): """ Permute all casings of a given string. - A pretty algoritm, via @Amber + A pretty algorithm, via @Amber http://stackoverflow.com/questions/6792803/finding-all-possible-case-permutations-in-python """ if not input_string: