mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Fix a handful of typos in docs and comments
Found with [codespell](https://github.com/codespell-project/codespell/) Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
45614b198b
commit
d2e987ef3c
46 files changed
+50
-50
No files matched your search
@@ -399,7 +399,7 @@ class ServiceHandler:
|
||||
|
||||
|
||||
class SystemServiceHandler(ServiceHandler):
|
||||
"""Handle starting and stoping of system services for backup."""
|
||||
"""Handle starting and stopping of system services for backup."""
|
||||
|
||||
def __init__(self, backup_app, service):
|
||||
"""Initialize the object."""
|
||||
@@ -419,7 +419,7 @@ class SystemServiceHandler(ServiceHandler):
|
||||
|
||||
|
||||
class ApacheServiceHandler(ServiceHandler):
|
||||
"""Handle starting and stoping of Apache services for backup."""
|
||||
"""Handle starting and stopping of Apache services for backup."""
|
||||
|
||||
def __init__(self, backup_app, service):
|
||||
"""Initialize the object."""
|
||||
|
||||
@@ -240,7 +240,7 @@ class SshBorgRepository(BorgRepository):
|
||||
|
||||
def __init__(self, uuid=None, path=None, credentials=None, **kwargs):
|
||||
"""
|
||||
Instanciate a new repository.
|
||||
Instantiate a new repository.
|
||||
|
||||
If only a uuid is given, load the values from kvstore.
|
||||
"""
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
value="{% trans "Run Diagnostics" %}"/>
|
||||
</form>
|
||||
{% else %}
|
||||
<p>{% trans "Diagnotics test is currently running" %}</p>
|
||||
<p>{% trans "Diagnostics test is currently running" %}</p>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-striped active"
|
||||
role="progressbar" aria-valuemin="0" aria-valuemax="100"
|
||||
|
||||
@@ -142,6 +142,6 @@ def is_public_registration_enabled():
|
||||
|
||||
|
||||
def is_private_mode_enabled():
|
||||
""" Return wheter private mode is enabled or disabled"""
|
||||
""" Return whether private mode is enabled or disabled"""
|
||||
output = actions.superuser_run('mediawiki', ['private-mode', 'status'])
|
||||
return output.strip() == 'enabled'
|
||||
@@ -27,7 +27,7 @@ import pytest
|
||||
|
||||
|
||||
def _get_partition_device(device, partition_number):
|
||||
"""Return the device corresponding to a parition in a given device."""
|
||||
"""Return the device corresponding to a partition in a given device."""
|
||||
if re.match('[0-9]', device[-1]):
|
||||
return device + 'p' + str(partition_number)
|
||||
|
||||
@@ -192,7 +192,7 @@ class TestActions:
|
||||
self.assert_ext4_file_system_healthy(1)
|
||||
|
||||
def assert_free_space(self, partition_number, space=True):
|
||||
"""Verify that free is available/not available after a parition."""
|
||||
"""Verify that free is available/not available after a partition."""
|
||||
device = _get_partition_device(self.device, partition_number)
|
||||
result = self.run_action(
|
||||
['storage', 'is-partition-expandable', device])
|
||||
|
||||
@@ -104,7 +104,7 @@ class UserUpdate(ContextMixin, SuccessMessageMixin, UpdateView):
|
||||
return super().dispatch(request, *args, **kwargs)
|
||||
|
||||
def get_form_kwargs(self):
|
||||
"""Make the requst object available to the form."""
|
||||
"""Make the request object available to the form."""
|
||||
kwargs = super(UserUpdate, self).get_form_kwargs()
|
||||
kwargs['request'] = self.request
|
||||
kwargs['username'] = self.object.username
|
||||
|
||||
Reference in new issue
Block a user