From d40dcb26a25c5a0b91ddd4a4cfba1edb94bb92e3 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 c2973d953f7792b444ca9f0aa4cae719a7d00da3 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 d32e32c534a5dce135b379a41dfde02b6ac86e41 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 c2973d953f7792b444ca9f0aa4cae719a7d00da3. --- 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.",