Skip to content

Commit

Permalink
fixed wrong spelled words (thonny#1534)
Browse files Browse the repository at this point in the history
Co-authored-by: freddii <https://freddii@github.com>
  • Loading branch information
freddii and freddii authored Jan 11, 2021
1 parent db86a51 commit 1795050
Show file tree
Hide file tree
Showing 23 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions CREDITS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Supporters
* Development of several features in Thonny 3.0 was proposed and supported by Raspberry Pi Foundation (https://www.raspberrypi.org).
* Since September 2018, development of Thonny is partially supported by Cybernetica AS (https://cyber.ee).

Serveral companies and organizations have provided us with free hardware for testing Thonny (and for having fun):
Several companies and organizations have provided us with free hardware for testing Thonny (and for having fun):

* Phidgets Education (https://www.phidgets.com/education/)
* Adafruit (https://www.adafruit.com/)
Expand All @@ -39,7 +39,7 @@ Libraries, resources and tools
* distro (https://pypi.python.org/pypi/distro) is optionally used for detecting Linux version in About dialog.
* paramiko (https://pypi.org/project/paramiko) is optionally used for writing and running code on remote machines.
* websockets (https://pypi.org/project/websockets) is optionally used for communicating with MicroPython devices over WebREPL.
* Most icons are taken from Eclipse project (https://www.eclipse.org/, https://github.com/eclipse/eclipse.platform.debug/tree/master/org.eclipse.debug.ui/icons/full/, https://github.com/eclipse/eclipse.platform.ui/tree/master/bundles/org.eclipse.ui/icons/full/, https://github.com/eclipse/eclipse.jdt.ui/tree/master/org.eclipse.jdt.ui/icons/full/), on Linux, some are overriden by Tango icons (http://tango.freedesktop.org/)
* Most icons are taken from Eclipse project (https://www.eclipse.org/, https://github.com/eclipse/eclipse.platform.debug/tree/master/org.eclipse.debug.ui/icons/full/, https://github.com/eclipse/eclipse.platform.ui/tree/master/bundles/org.eclipse.ui/icons/full/, https://github.com/eclipse/eclipse.jdt.ui/tree/master/org.eclipse.jdt.ui/icons/full/), on Linux, some are overridden by Tango icons (http://tango.freedesktop.org/)
* POEditor (https://poeditor.com/) is used for managing translations of UI strings.

Source contributors, advisors, translators and frequent bug-reporters
Expand Down
2 changes: 1 addition & 1 deletion licenses/CERTIFI-LICENCE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This packge contains a modified version of ca-bundle.crt:
This package contains a modified version of ca-bundle.crt:

ca-bundle.crt -- Bundle of CA Root Certificates

Expand Down
2 changes: 1 addition & 1 deletion licenses/_readme.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This directory contains licenses of Thonny's dependecies
This directory contains licenses of Thonny's dependencies
(which are not necessarily distributed together with Thonny).
6 changes: 3 additions & 3 deletions misc/pylint/pylint-1.6.5_msgs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
specified in valid-classmethod-first-arg option (default to "cls"),
recommended to easily differentiate them from regular instance methods.
:bad-mcs-method-argument (C0203): *Metaclass method %s should have %s as first argument*
Used when a metaclass method has a first agument named differently than the
Used when a metaclass method has a first argument named differently than the
value specified in valid-classmethod-first-arg option (default to "cls"),
recommended to easily differentiate them from regular instance methods.
:bad-mcs-classmethod-argument (C0204): *Metaclass class method %s should have %s as first argument*
Expand Down Expand Up @@ -182,7 +182,7 @@
:bad-except-order (E0701): *Bad except clauses order (%s)*
Used when except clauses are not in the correct order (from the more specific
to the more generic). If you don't fix the order, some exceptions may not be
catched by the most specific handler.
caught by the most specific handler.
:raising-bad-type (E0702): *Raising %s while only classes or instances are allowed*
Used when something which is neither a class, an instance or a string is
raised (i.e. a `TypeError` will be raised).
Expand Down Expand Up @@ -305,7 +305,7 @@
representation. This is usually accompanied by a traceback. Please report such
errors !
:parse-error (F0010): *error while code parsing: %s*
Used when an exception occured while building the Astroid representation which
Used when an exception occurred while building the Astroid representation which
could be handled by astroid.
:method-check-failed (F0202): *Unable to check methods signature (%s / %s)*
Used when Pylint has been unable to check methods signature compatibility for
Expand Down
2 changes: 1 addition & 1 deletion thonny/base_file_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ def mkdir(self):
parent = self.current_focus
else:
if self.get_selected_kind() == "file":
# dirname does the right thing even if parent is Linux path and runnning on Windows
# dirname does the right thing even if parent is Linux path and running on Windows
parent = os.path.dirname(parent)

name = ask_string(
Expand Down
2 changes: 1 addition & 1 deletion thonny/plugins/cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _patch_intercept_mark():
Looks like this solution is safe, but I don't dare to include
it in the main code.
UPADTE: not safe. Select and delete a block of lines. Write a new
UPDATE: not safe. Select and delete a block of lines. Write a new
line and do Ctrl-Z"""

original_intercept_mark = CodeViewText.intercept_mark
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ class Palette:

class ParallelBus:
"""Manage updating a display over 8-bit parallel bus in the background while Python code runs. This
protocol may be refered to as 8080-I Series Parallel Interface in datasheets. It doesn't handle
protocol may be referred to as 8080-I Series Parallel Interface in datasheets. It doesn't handle
display initialization."""

def __init__(self, *, data0: microcontroller.Pin, command: microcontroller.Pin, chip_select: microcontroller.Pin, write: microcontroller.Pin, read: microcontroller.Pin, reset: microcontroller.Pin):
Expand Down
6 changes: 3 additions & 3 deletions thonny/plugins/circuitpython/api_stubs/os/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ def stat(path: Any) -> Any:
...

def statvfs(path: Any) -> Any:
"""Get the status of a fileystem.
"""Get the status of a filesystem.
Returns a tuple with the filesystem information in the following order:
* ``f_bsize`` -- file system block size
* ``f_frsize`` -- fragment size
* ``f_blocks`` -- size of fs in f_frsize units
* ``f_bfree`` -- number of free blocks
* ``f_bavail`` -- number of free blocks for unpriviliged users
* ``f_bavail`` -- number of free blocks for unprivileged users
* ``f_files`` -- number of inodes
* ``f_ffree`` -- number of free inodes
* ``f_favail`` -- number of free inodes for unpriviliged users
* ``f_favail`` -- number of free inodes for unprivileged users
* ``f_flag`` -- mount flags
* ``f_namemax`` -- maximum filename length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class IncrementalEncoder:
def __init__(self, pin_a: microcontroller.Pin, pin_b: microcontroller.Pin):
"""Create an IncrementalEncoder object associated with the given pins. It tracks the positional
state of an incremental rotary encoder (also known as a quadrature encoder.) Position is
relative to the position when the object is contructed.
relative to the position when the object is constructed.
:param ~microcontroller.Pin pin_a: First pin to read pulses from.
:param ~microcontroller.Pin pin_b: Second pin to read pulses from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def newton(fun, x0, *, xtol=2.4e-7, rtol=0.0, maxiter=50) -> float:
Find a solution (zero) of the function ``f(x)`` using Newton's Method.
The result is accurate to within ``xtol * rtol * |f(x)|`` unless more than
``maxiter`` steps are requried."""
``maxiter`` steps are required."""
...

def fmin(fun, x0, *, xatol=2.4e-7, fatol=2.4e-7, maxiter=200) -> float:
Expand All @@ -36,7 +36,7 @@ def fmin(fun, x0, *, xatol=2.4e-7, fatol=2.4e-7, maxiter=200) -> float:
Find a minimum of the function ``f(x)`` using the downhill simplex method.
The located ``x`` is within ``fxtol`` of the actual minimum, and ``f(x)``
is within ``fatol`` of the actual minimum unless more than ``maxiter``
steps are requried."""
steps are required."""
...

def interp(x: ulab.array, xp:ulab.array, fp:ulab.array, *, left=None, right=None) -> ulab.array:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def tanh():
def vectorize(f, *, otypes=None):
"""
:param callable f: The function to wrap
:param otypes: List of array types that may be returned by the function. None is intepreted to mean the return value is float.
:param otypes: List of array types that may be returned by the function. None is interpreted to mean the return value is float.
Wrap a Python function ``f`` so that it can be applied to arrays.
Expand Down
2 changes: 1 addition & 1 deletion thonny/plugins/cpython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class CustomCPythonProxy(CPythonProxy):
def __init__(self, clean):
executable = get_workbench().get_option("CustomInterpreter.path")

# Rembember the usage of this non-default interpreter
# Remember the usage of this non-default interpreter
used_interpreters = get_workbench().get_option("CustomInterpreter.used_paths")
if executable not in used_interpreters:
used_interpreters.append(executable)
Expand Down
2 changes: 1 addition & 1 deletion thonny/plugins/cpython/cpython_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ def _export_stack(self, newest_frame, relevance_checker=None):
0,
FrameInfo(
# TODO: can this id be reused by a later frame?
# Need to store the refernce to avoid GC?
# Need to store the reference to avoid GC?
# I guess it is not required, as id will be required
# only for stacktrace inspection, and sys.last_exception
# will have the reference anyway
Expand Down
2 changes: 1 addition & 1 deletion thonny/plugins/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def __init__(self, master, frame_info):
def _init_layout_widgets(self, master, frame_info):
self.main_frame = ttk.Frame(
self
) # just a backgroud behind padding of main_pw, without this OS X leaves white border
) # just a background behind padding of main_pw, without this OS X leaves white border
self.main_frame.grid(sticky=tk.NSEW)
self.rowconfigure(0, weight=1)
self.columnconfigure(0, weight=1)
Expand Down
8 changes: 4 additions & 4 deletions thonny/plugins/find_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(self, master):
self.replace_button.grid(column=3, row=1, sticky=tk.W + tk.E, padx=(0, padx))
self.replace_button.config(state="disabled")

# Replace + find button - replaces the current occurence and goes to next
# Replace + find button - replaces the current occurrence and goes to next
self.replace_and_find_button = ttk.Button(
main_frame,
text=tr("Replace+Find"),
Expand Down Expand Up @@ -228,7 +228,7 @@ def _perform_replace_and_find(self):
self._perform_replace()
self._perform_find()

# replaces all occurences of the search string with the replace string
# replaces all occurrences of the search string with the replace string
def _perform_replace_all(self):

tofind = self.find_entry.get()
Expand Down Expand Up @@ -304,7 +304,7 @@ def _perform_find(self, event=None):
search_start_index = self.codeview.text.index(
"insert"
) # start searching from the current insert position
self._find_and_tag_all(tofind) # set the passive tag to ALL found occurences
self._find_and_tag_all(tofind) # set the passive tag to ALL found occurrences
FindDialog.last_searched_word = tofind # set the data about last search
self.last_search_case = self._is_search_case_sensitive()

Expand Down Expand Up @@ -368,7 +368,7 @@ def _remove_all_tags(self):
self.replace_and_find_button.config(state="disabled")
self.replace_button.config(state="disabled")

# finds and tags all occurences of the searched term
# finds and tags all occurrences of the searched term
def _find_and_tag_all(self, tofind, force=False):
# TODO - to be improved so only whole words are matched - surrounded by whitespace, parentheses, brackets, colons, semicolons, points, plus, minus

Expand Down
2 changes: 1 addition & 1 deletion thonny/plugins/help/packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ your platform. Most likely you want graphical installer and 64-bit version (you
Install it and find out where it puts Python executable (*pythonw.exe* in Windows and
*python3* or *python* in Linux and Mac).

In Thonny open "Tools" menu and select "Options...". In the options dialog open "Intepreter"
In Thonny open "Tools" menu and select "Options...". In the options dialog open "Interpreter"
tab, click "Select executable" and show the location of Anaconda's Python executable.

After you have done this, next time you run your program, it will be run through Anaconda's
Expand Down
2 changes: 1 addition & 1 deletion thonny/plugins/highlight_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def get_positions_for(self, source, line, column):


class UsagesHighlighter(BaseNameHighlighter):
"""Script.usages looks tempting method to use for finding variable ocurrences,
"""Script.usages looks tempting method to use for finding variable occurrences,
but it only returns last
assignments to a variable, not really all usages (with Jedi 0.10).
But it finds attribute usages quite nicely.
Expand Down
4 changes: 2 additions & 2 deletions thonny/plugins/micropython/bare_metal_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def _forward_output_until_active_prompt(
Because ot the special role of EOT and NORMAL_PROMT, we assume user code
will not output these. If it does, processing may break.
It may succceed if the propmt is followed by something (quickly enough)
It may succeed if the prompt is followed by something (quickly enough)
-- that's why we look for *active* prompt, ie. prompt without following text.
TODO: Experiment with this!
Expand Down Expand Up @@ -830,7 +830,7 @@ def _forward_output_until_active_prompt(
# Don't output yet, because the follow up may turn into another prompt
# and they can be captured all together.
self._connection.unread(follow_up)
# read propmt must remain in pending
# read prompt must remain in pending
continue
else:
# let's hope it is an active prompt
Expand Down
2 changes: 1 addition & 1 deletion thonny/plugins/pip_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def _start_show_package_info(self, name):
self.current_package_data = None
# Fetch info from PyPI
self._set_state("fetching")
# Follwing fetches info about latest version.
# Following fetches info about latest version.
# This is OK even when we're looking an installed older version
# because new version may have more relevant and complete info.
_start_fetching_package_info(name, None, self._show_package_info)
Expand Down
2 changes: 1 addition & 1 deletion thonny/plugins/replayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def select_event(self, event_index):
self.last_event_index += 1

elif event_index < self.last_event_index:
# Undo by reseting and replaying again
# Undo by resetting and replaying again
self.reset()
self.select_event(event_index)

Expand Down
4 changes: 2 additions & 2 deletions thonny/plugins/stdlib_error_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _sug_missing_or_misplaced_colon(self):
self.tokens[keyword_pos + 1].type not in (token.NEWLINE, tokenize.COMMENT)
and t.string == "else"
):
body = "If you want to specify a conditon, then use `elif` or nested `if`."
body = "If you want to specify a condition, then use `elif` or nested `if`."
break

i += 1
Expand Down Expand Up @@ -420,7 +420,7 @@ def _sug_local_from_global(self):

return Suggestion(
"local-from-global",
"Are you trying to acces a local variable outside of the function?",
"Are you trying to access a local variable outside of the function?",
body,
relevance,
)
Expand Down
2 changes: 1 addition & 1 deletion thonny/running.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def get_pip_gui_class(self):
return None

def interrupt(self):
"""Tries to interrupt current command without reseting the backend"""
"""Tries to interrupt current command without resetting the backend"""
pass

def destroy(self):
Expand Down
2 changes: 1 addition & 1 deletion thonny/workbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def _init_containers(self) -> None:

margin = 10
# Main frame functions as
# - a backgroud behind padding of main_pw, without this OS X leaves white border
# - a background behind padding of main_pw, without this OS X leaves white border
# - a container to be hidden, when a view is maximized and restored when view is back home
main_frame = ttk.Frame(self) #
self._main_frame = main_frame
Expand Down

0 comments on commit 1795050

Please sign in to comment.