From d32d1eb6db8ede65c77be43a36b2e292f40474c7 Mon Sep 17 00:00:00 2001 From: Shaun Oakenfull Date: Wed, 6 Oct 2021 08:24:21 +1000 Subject: [PATCH 1/3] Fix typo in comment environments typo corrected. --- evennia/utils/evmenu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/utils/evmenu.py b/evennia/utils/evmenu.py index b015406374..7f2ddbed09 100644 --- a/evennia/utils/evmenu.py +++ b/evennia/utils/evmenu.py @@ -384,7 +384,7 @@ class CmdEvMenuNode(Command): caller = self.caller # we store Session on the menu since this can be hard to - # get in multisession environemtns if caller is an Account. + # get in multisession environments if caller is an Account. menu = caller.ndb._evmenu if not menu: if _restore(caller): From 7b9fccd9e62e41d54c4a4d394cece05a67805a7b Mon Sep 17 00:00:00 2001 From: Shaun Oakenfull Date: Wed, 6 Oct 2021 08:46:04 +1000 Subject: [PATCH 2/3] add triple quotes for docstring --- docs/source/First-Steps-Coding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/First-Steps-Coding.md b/docs/source/First-Steps-Coding.md index fa54b4484d..6e8aac4ce1 100644 --- a/docs/source/First-Steps-Coding.md +++ b/docs/source/First-Steps-Coding.md @@ -182,7 +182,7 @@ the bottom of this file: help_category = "General" def func(self): - "implements the actual functionality" + """implements the actual functionality""" str, agi, mag = self.caller.get_abilities() string = "STR: %s, AGI: %s, MAG: %s" % (str, agi, mag) @@ -242,7 +242,7 @@ functionality. Here is an example of how the file could look: assume it looks like a stone in this example. """ def at_object_creation(self): - "Called when object is first created" + """Called when object is first created""" self.db.wise_texts = \ ["Stones have feelings too.", "To live like a stone is to not have lived at all.", From e59486437334c60c43874b9fc98f2b1a2f4013ac Mon Sep 17 00:00:00 2001 From: Shaun Oakenfull Date: Wed, 6 Oct 2021 08:49:10 +1000 Subject: [PATCH 3/3] Revert "add triple quotes for docstring" This reverts commit 7b9fccd9e62e41d54c4a4d394cece05a67805a7b. --- docs/source/First-Steps-Coding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/First-Steps-Coding.md b/docs/source/First-Steps-Coding.md index 6e8aac4ce1..fa54b4484d 100644 --- a/docs/source/First-Steps-Coding.md +++ b/docs/source/First-Steps-Coding.md @@ -182,7 +182,7 @@ the bottom of this file: help_category = "General" def func(self): - """implements the actual functionality""" + "implements the actual functionality" str, agi, mag = self.caller.get_abilities() string = "STR: %s, AGI: %s, MAG: %s" % (str, agi, mag) @@ -242,7 +242,7 @@ functionality. Here is an example of how the file could look: assume it looks like a stone in this example. """ def at_object_creation(self): - """Called when object is first created""" + "Called when object is first created" self.db.wise_texts = \ ["Stones have feelings too.", "To live like a stone is to not have lived at all.",