From ac887016c434b3fc2fd229b33deea9269d3276b5 Mon Sep 17 00:00:00 2001 From: blakejameson Date: Mon, 14 Apr 2025 11:40:44 -0500 Subject: [PATCH] cleaning up some usage of "its" and "it's" --- README.md | 4 ++-- cement/core/extension.py | 2 +- cement/core/foundation.py | 6 +++--- cement/ext/ext_argparse.py | 4 ++-- cement/ext/ext_generate.py | 2 +- cement/ext/ext_logging.py | 4 ++-- cement/ext/ext_memcached.py | 2 +- cement/ext/ext_smtp.py | 2 +- cement/utils/version.py | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 012f18f1..83346ed3 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ [![Continuous Integration Status](https://app.travis-ci.com/datafolklabs/cement.svg?branch=master)](https://app.travis-ci.com/github/datafolklabs/cement/) -Cement is an advanced Application Framework for Python, with a primary focus on Command Line Interfaces (CLI). Its goal is to introduce a standard, and feature-full platform for both simple and complex command line applications as well as support rapid development needs without sacrificing quality. Cement is flexible, and it's use cases span from the simplicity of a micro-framework to the complexity of a mega-framework. Whether it's a single file script, or a multi-tier application, Cement is the foundation you've been looking for. +Cement is an advanced Application Framework for Python, with a primary focus on Command Line Interfaces (CLI). Its goal is to introduce a standard and feature-full platform for both simple and complex command line applications as well as support rapid development needs without sacrificing quality. Cement is flexible, and its use cases span from the simplicity of a micro-framework to the complexity of a mega-framework. Whether it's a single file script or a multi-tier application, Cement is the foundation you've been looking for. -The first commit to Git was on Dec 4, 2009. Since then, the framework has seen several iterations in design, and has continued to grow and improve since it's inception. Cement is the most stable, and complete framework for command line and backend application development. +The first commit to Git was on Dec 4, 2009. Since then, the framework has seen several iterations in design and has continued to grow and improve since its inception. Cement is the most stable and complete framework for command line and backend application development. ## Installation diff --git a/cement/core/extension.py b/cement/core/extension.py index a42e90db..20f33106 100644 --- a/cement/core/extension.py +++ b/cement/core/extension.py @@ -116,7 +116,7 @@ class ExtensionHandler(ExtensionInterface, Handler): loaded. """ - # If its not a full module path then preppend our default path + # If it's not a full module path then preppend our default path if ext_module.find('.') == -1: ext_module = f'cement.ext.ext_{ext_module}' diff --git a/cement/core/foundation.py b/cement/core/foundation.py index 1908e0a8..dab44b95 100644 --- a/cement/core/foundation.py +++ b/cement/core/foundation.py @@ -651,10 +651,10 @@ class App(meta.MetaMixin): extensions. Developers can optionally use the ``App.__import__()`` method to import simple modules, and if that module exists in this mapping it will import the alternative - library in it's place. + library in its place. - This is a low-level feature, and may not produce the results you are - expecting. It's purpose is to allow the developer to replace specific + This is a low-level feature and may not produce the results you are + expecting. Its purpose is to allow the developer to replace specific modules at a high level. Example: For an application wanting to use ``ujson`` in place of ``json``, the developer could set the following: diff --git a/cement/ext/ext_argparse.py b/cement/ext/ext_argparse.py index 9203dbc7..47d6bb75 100644 --- a/cement/ext/ext_argparse.py +++ b/cement/ext/ext_argparse.py @@ -599,7 +599,7 @@ class ArgparseController(ControllerHandler): elif stacked_type == 'embedded': # if it's embedded, then just set it to use the same as the - # controller its stacked on + # controller it's stacked on parents[label] = parents[stacked_on] parsers[label] = parsers[stacked_on] contr._parser = parsers[stacked_on] @@ -812,7 +812,7 @@ class ArgparseController(ControllerHandler): # if no __dispatch__ is set then that means we have hit a # controller with not sub-command (argparse doesn't support # default sub-command yet... so we rely on - # __controller_namespace__ and it's default func + # __controller_namespace__ and its default func # We never get here on Python < 3 as Argparse would have already # complained about too few arguments diff --git a/cement/ext/ext_generate.py b/cement/ext/ext_generate.py index d068bbc9..28399b99 100644 --- a/cement/ext/ext_generate.py +++ b/cement/ext/ext_generate.py @@ -143,7 +143,7 @@ def setup_template_items(app: App) -> None: if os.path.exists(subpath) and subpath not in template_dirs: template_dirs.append(subpath) - # use app template module, find it's path on filesystem + # use app template module, find its path on filesystem if app._meta.template_module is not None: mod_parts = app._meta.template_module.split('.') mod_name = mod_parts.pop() diff --git a/cement/ext/ext_logging.py b/cement/ext/ext_logging.py index ce116cc2..69e8ba1c 100644 --- a/cement/ext/ext_logging.py +++ b/cement/ext/ext_logging.py @@ -218,7 +218,7 @@ class LoggingLogHandler(log.LogHandler): else: console_handler = NullHandler() - # FIXME: self._clear_loggers() should be preventing this but its not! + # FIXME: self._clear_loggers() should be preventing this but it's not! for i in logging.getLogger(f"cement:app:{namespace}").handlers: if isinstance(i, logging.StreamHandler): self.backend.removeHandler(i) @@ -259,7 +259,7 @@ class LoggingLogHandler(log.LogHandler): else: file_handler = NullHandler() - # FIXME: self._clear_loggers() should be preventing this but its not! + # FIXME: self._clear_loggers() should be preventing this but it's not! for i in logging.getLogger(f"cement:app:{namespace}").handlers: if isinstance(i, file_handler.__class__): # pragma: nocover self.backend.removeHandler(i) # pragma: nocover diff --git a/cement/ext/ext_memcached.py b/cement/ext/ext_memcached.py index 605d764d..ad240971 100644 --- a/cement/ext/ext_memcached.py +++ b/cement/ext/ext_memcached.py @@ -58,7 +58,7 @@ class MemcachedCacheHandler(cache.CacheHandler): comma-separated string into a list). This function does not return anything, however it is expected to set the `hosts` value of the ``[cache.memcached]`` section (which is what this extension reads for - it's host configution). + its host configution). :returns: ``None`` diff --git a/cement/ext/ext_smtp.py b/cement/ext/ext_smtp.py index a314a927..01fbd431 100644 --- a/cement/ext/ext_smtp.py +++ b/cement/ext/ext_smtp.py @@ -196,7 +196,7 @@ class SMTPMailHandler(mail.MailHandler): for in_path in params['files']: part = MIMEBase('application', 'octet-stream') - # support for alternative file name if its tuple + # support for alternative file name if it's tuple # like ('alt-name.ext', '/path/to/file.ext') if isinstance(in_path, tuple): if in_path[0] == in_path[1]: diff --git a/cement/utils/version.py b/cement/utils/version.py index f5308ac9..3feb48c1 100644 --- a/cement/utils/version.py +++ b/cement/utils/version.py @@ -34,7 +34,7 @@ # in this file. # Note: Nothing is covered here because this file is imported before nose and -# coverage take over.. and so its a false positive that nothing is covered. +# coverage take over.. and so it's a false positive that nothing is covered. import datetime import os