Fix typos
Those typos were found with codespell which is available from https://github.com/lucasdemarchi/codespell.git
This commit is contained in:
1 parent
ef54cbb148
commit
2b60dbc7e1
10 files changed
+12
-12
No files matched your search
@@ -387,7 +387,7 @@ class PluginInfo(object):
|
||||
@property
|
||||
def hooks(self):
|
||||
"""
|
||||
Hooks provided by the plugin. Will be taken from the hooks attribute of the plugin module as defiend in
|
||||
Hooks provided by the plugin. Will be taken from the hooks attribute of the plugin module as defined in
|
||||
:attr:`attr_hooks` if available, otherwise an empty dictionary is returned.
|
||||
|
||||
Returns:
|
||||
|
||||
@@ -211,7 +211,7 @@ class DiscoveryPlugin(octoprint.plugin.StartupPlugin,
|
||||
|
||||
def zeroconf_unregister(self, reg_type, port=None):
|
||||
"""
|
||||
Unregisteres a previously registered Zeroconf/Bonjour/Avahi service identified by service and port.
|
||||
Unregisters a previously registered Zeroconf/Bonjour/Avahi service identified by service and port.
|
||||
|
||||
:param reg_type: the type of the service to be unregistered
|
||||
:param port: the port of the service to be unregistered, defaults to OctoPrint's (public) port if not given
|
||||
|
||||
@@ -69,7 +69,7 @@ class PrintTimeEstimator(object):
|
||||
but no intelligent estimate yet, we'll use that for the next step. Otherwise, up to a certain percentage
|
||||
in the print we do a percentage based weighing of the statistical data and the intelligent
|
||||
estimate - the closer to the beginning of the print, the more precedence for the statistical
|
||||
data, the closer to the cut off point, the more precendence for the intelligent estimate. This
|
||||
data, the closer to the cut off point, the more precedence for the intelligent estimate. This
|
||||
is our preliminary total print time.
|
||||
3. If the total print time is set, we do a sanity check for it. Based on the total print time
|
||||
estimate and the time we already spent printing, we calculate at what percentage we SHOULD be
|
||||
|
||||
@@ -286,7 +286,7 @@ class Server(object):
|
||||
### open port and prevent us from firing up Tornado later.
|
||||
###
|
||||
### The intermediary server's socket should have the CLOSE_EXEC flag (or its equivalent) set where possible, but
|
||||
### we can only do that if fcntl is availabel or we are on Windows, so better safe than sorry.
|
||||
### we can only do that if fcntl is available or we are on Windows, so better safe than sorry.
|
||||
###
|
||||
### See also issues #2035 and #2090
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ def pluginCommand(name):
|
||||
return response
|
||||
return NO_CONTENT
|
||||
except Exception:
|
||||
logging.getLogger(__name__).exception("Error while excuting SimpleApiPlugin {}".format(name),
|
||||
logging.getLogger(__name__).exception("Error while executing SimpleApiPlugin {}".format(name),
|
||||
extra=dict(plugin=name))
|
||||
return abort(500)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ class RequestlessExceptionLoggingMixin(tornado.web.RequestHandler):
|
||||
class CorsSupportMixin(tornado.web.RequestHandler):
|
||||
"""
|
||||
`tornado.web.RequestHandler <http://tornado.readthedocs.org/en/branch4.0/web.html#request-handlers>`_ mixin that
|
||||
makes sure to set CORS headers similarily to the Flask backed API endpoints.
|
||||
makes sure to set CORS headers similarly to the Flask backed API endpoints.
|
||||
"""
|
||||
|
||||
ENABLE_CORS = False
|
||||
|
||||
@@ -1232,7 +1232,7 @@ class Settings(object):
|
||||
self._logger.info("Migrated {} action to server.commands.{}".format(action, migrate_to))
|
||||
|
||||
to_delete.append(index)
|
||||
self._logger.info("Deleting {} action from configured system commands, superseeded by server.commands.{}".format(action, migrate_to))
|
||||
self._logger.info("Deleting {} action from configured system commands, superseded by server.commands.{}".format(action, migrate_to))
|
||||
|
||||
for index in reversed(to_delete):
|
||||
actions.pop(index)
|
||||
|
||||
@@ -655,7 +655,7 @@ $(function() {
|
||||
}
|
||||
}
|
||||
|
||||
// handler for any explicitely provided callbacks
|
||||
// handler for any explicitly provided callbacks
|
||||
var callbackHandler = function() {
|
||||
if (!callback) return;
|
||||
try {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<input type="number" min="1" class="input-mini" id="webcam_timelapse_minDelay" data-bind="value: timelapseMinDelay, valueUpdate: 'afterkeydown', enable: !isPrinting() && loginState.isUser()">
|
||||
<span class="add-on">{{ _('sec') }}</span>
|
||||
</div>
|
||||
<span class="help-block">{{ _('OctoPrint will rate limit snapshots to this minimum interval. This is to prevent against performance issues with vase mode/continous z prints.') }}</span>
|
||||
<span class="help-block">{{ _('OctoPrint will rate limit snapshots to this minimum interval. This it to prevent against performance issues with vase mode/continuous z prints.') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2708,11 +2708,11 @@ class MachineCom(object):
|
||||
|
||||
_recoverable_communication_errors = ("no line number with checksum",
|
||||
"missing linenumber")
|
||||
_resend_request_communication_errors = ("line number", # since this error class get's checked after recoverable
|
||||
_resend_request_communication_errors = ("line number", # since this error class gets checked after recoverable
|
||||
# communication errors, we can use this broad term here
|
||||
"linenumber", # since this error class get's checked after recoverable
|
||||
"linenumber", # since this error class gets checked after recoverable
|
||||
# communication errors, we can use this broad term here
|
||||
"checksum", # since this error class get's checked after recoverable
|
||||
"checksum", # since this error class gets checked after recoverable
|
||||
# communication errors, we can use this broad term here
|
||||
"format error",
|
||||
"expected line")
|
||||
|
||||
Reference in new issue
Block a user