Skip to content

Commit

Permalink
Fix typos discovered by codespell (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jan 19, 2024
1 parent 0a24142 commit b1a5431
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compressor/contrib/jinja2ext.py
Expand Up @@ -34,7 +34,7 @@ def parse(self, parser):
parser.stream.current.lineno,
)

# For legacy support, allow for a commma but simply ignore it
# For legacy support, allow for a comma but simply ignore it
parser.stream.skip_if("comma")

# Some sane defaults for file output
Expand Down
2 changes: 1 addition & 1 deletion compressor/tests/test_offline.py
Expand Up @@ -76,7 +76,7 @@ def replace(self, *args, **kwargs):
In ``django.core.files.storage``, ``FileSystemStorage.url()`` passes
this object to ``urllib.parse.urljoin``.
In ``urrlib.parse``, the function that calls ``replace()`` is
In ``urllib.parse``, the function that calls ``replace()`` is
``_remove_unsafe_bytes_from_url()``.
"""
Expand Down
6 changes: 3 additions & 3 deletions docs/changelog.txt
Expand Up @@ -306,7 +306,7 @@ v1.3 (2013-03-18)
- Dropped support for Python 2.5. Removed ``any`` and ``walk`` compatibility
functions in ``compressor.utils``.

- Removed compatibility with some old django setttings:
- Removed compatibility with some old django settings:

- :attr:`~COMPRESS_ROOT` no longer uses ``MEDIA_ROOT`` if ``STATIC_ROOT`` is
not defined. It expects ``STATIC_ROOT`` to be defined instead.
Expand Down Expand Up @@ -373,7 +373,7 @@ v1.2
of the template context mentioned above.

- Reverted an unfortunate change to the YUI filter that prepended
``'java -jar'`` to the binary name, which doesn't alway work, e.g.
``'java -jar'`` to the binary name, which doesn't always work, e.g.
if the YUI compressor is shipped as a script like
``/usr/bin/yui-compressor``.

Expand Down Expand Up @@ -618,7 +618,7 @@ Major improvements and a lot of bugfixes, some of which are:
- New ``compress`` management command which allows pre-running of what the
compress template tag does.

- Various performance improvements by better caching and mtime cheking.
- Various performance improvements by better caching and mtime checking.

- Deprecated ``COMPRESS_LESSC_BINARY`` setting because it's now
superseded by the :attr:`~django.conf.settings.COMPRESS_PRECOMPILERS`
Expand Down
2 changes: 1 addition & 1 deletion docs/django-sekizai.txt
Expand Up @@ -34,7 +34,7 @@ use any of these directives to import Stylesheets and JavaScript files:
{% addtoblock "js" %}<script async="async" defer="defer" src="https://maps.googleapis.com/maps/api/js?key={{ config.apiKey }}&callback=initMap"></script>{% endaddtoblock %}

Note that some files are loaded by the browser directly from a CDN and thus can not be compressed
by django-compressor. Therefore the Sekizai compressor checks whether a file is compressable, and
by django-compressor. Therefore the Sekizai compressor checks whether a file is compressible, and
only if so, concatenates its payload.

.. code-block:: django
Expand Down
2 changes: 1 addition & 1 deletion docs/jinja2.txt
Expand Up @@ -44,7 +44,7 @@ Using both Django and Jinja2 templates
There may be a chance that the Jinja2 parser is used to parse Django templates
if you have a mixture of Django and Jinja2 templates in the same location(s).
This should not be a problem since the Jinja2 parser will likely raise a
template syntax error, causing Compressor to skip the errorneous
template syntax error, causing Compressor to skip the erroneous
template safely. (Vice versa for Django parser).

Templates of both engines can be compressed like this:
Expand Down

0 comments on commit b1a5431

Please sign in to comment.