mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 11:56:51 +00:00
cleaning up some usage of "its" and "it's"
This commit is contained in:
parent
a5a6a081f3
commit
ac887016c4
@ -5,9 +5,9 @@
|
||||
[](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
|
||||
|
||||
|
||||
@ -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}'
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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``
|
||||
|
||||
|
||||
@ -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]:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user