Skip to content

Commit

Permalink
Multiple typo fixes (errbotio#993)
Browse files Browse the repository at this point in the history
* Typo: runnning

Typo: runnning

* Typo: maximum

Typo: maximum

* Typo: retrieve

Typo: retrieve

* Typo: instantiate and explicitly

Fixes for method names will be in a separate commit.
  • Loading branch information
JunaidLoonat authored and zoni committed Apr 20, 2017
1 parent 989ab36 commit e0124b8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/user_guide/flow_development/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can represent this flow like this:
.. figure:: basics_1.svg
:align: center

You can store something in the context in for example in ``!first`` and retreive in ``!second``. Like this:
You can store something in the context in for example in ``!first`` and retrieve in ``!second``. Like this:

.. code-block:: python
Expand Down Expand Up @@ -112,4 +112,4 @@ You can represent this flow like this:
.. figure:: advanced_2.svg
:align: center

The typical use case is to ask repetitively something to the user.
The typical use case is to ask repetitively something to the user.
4 changes: 2 additions & 2 deletions docs/user_guide/flow_development/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ You can still represent this flow like this:
.. figure:: basics_1.svg
:align: center

BUT, when a user will execute a ``!first`` command, the bot will instantly instanciate a Flow in this state:
BUT, when a user will execute a ``!first`` command, the bot will instantly instantiate a Flow in this state:

.. figure:: basics_2.svg
:align: center
Expand All @@ -111,7 +111,7 @@ Flow ending

If a node has no more children and a user passed it, it will automatically ends the flow.

Sometimes, with loops etc, you might want to explicitely mark an END FlowNode with a predicate, you can do it like this,
Sometimes, with loops etc, you might want to explicitly mark an END FlowNode with a predicate, you can do it like this,
for example for a guessing game plugin:

.. figure:: end.svg
Expand Down
4 changes: 2 additions & 2 deletions docs/user_guide/storage_development/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Errbot to your favorite database.
Architecture
------------

Storage plugin are instanciated in 2 stages.
Storage plugin are instantiated in 2 stages.

The first stage is similar to the normal bot plugins:

Expand Down Expand Up @@ -41,7 +41,7 @@ mapping accessors to the :class:`~errbot.storage.base.StorageBase` implementatio
Testing
-------

Those plugins are completely independent from Errbot itself, it should be easy to instanciate and test them externally.
Those plugins are completely independent from Errbot itself, it should be easy to instantiate and test them externally.


Example
Expand Down
2 changes: 1 addition & 1 deletion errbot/core_plugins/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def plugin_config(self, _, args):
Copy paste, adapt so can configure the plugin :
!plugin config ExampleBot {'LOGIN': '[email protected]', 'PASSWORD': 'myrealpassword', 'DIRECTORY': '/tmp'}
It will then reload the plugin with this config.
You can at any moment retreive the current values:
You can at any moment retrieve the current values:
!plugin config ExampleBot
should return :
{'LOGIN': '[email protected]', 'PASSWORD': 'myrealpassword', 'DIRECTORY': '/tmp'}
Expand Down
6 changes: 3 additions & 3 deletions errbot/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def check_python_plug_section(name: str, config: ConfigParser) -> bool:
except NoSectionError:
log.info(
'Plugin %s has no section [Python]. Assuming this '
'plugin is runnning only under python 3.', name)
'plugin is running only under python 3.', name)
python_version = '3'

if python_version not in ('2', '2+', '3'):
Expand Down Expand Up @@ -163,7 +163,7 @@ def check_errbot_version(name: str, min_version: str, max_version: str):

if max_version and version2array(max_version) < current_version:
raise IncompatiblePluginException(
'The plugin %s asks for Errbot with a maximal version of %s while Errbot is version %s' % (
'The plugin %s asks for Errbot with a maximum version of %s while Errbot is version %s' % (
name, max_version, VERSION)
)

Expand Down Expand Up @@ -193,7 +193,7 @@ def check_errbot_plug_section(name: str, config: ConfigParser) -> bool:

except NoSectionError:
log.debug('Plugin %s has no section [Errbot]. Assuming this '
'plugin is runnning on any Errbot version.', name)
'plugin is running on any Errbot version.', name)
min_version = VERSION
max_version = VERSION
try:
Expand Down
2 changes: 1 addition & 1 deletion errbot/repo_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def index_update(self):

def get_repo_from_index(self, repo_name):
"""
Retreive the list of plugins for the repo_name from the index.
Retrieve the list of plugins for the repo_name from the index.
:param repo_name: the name of hte repo
:return: a list of RepoEntry
Expand Down
2 changes: 1 addition & 1 deletion errbot/specific_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SpecificPluginLocator(PluginFileAnalyzerWithInfoFile):
"""
This is a plugin locator (kind of filter in yapsy jargon) to match a backend.
We have to go through hoops because yapsy is really aggressive at instanciating plugin.
(this would instanciate several bots, we don't want to do that).
(this would instantiate several bots, we don't want to do that).
"""
def __init__(self, name_to_find):
super().__init__('SpecificBackendLocator', 'plug')
Expand Down

0 comments on commit e0124b8

Please sign in to comment.