From: Jeremy Stanley Date: Sat, 5 Jan 2019 17:53:57 +0000 (+0000) Subject: Rename command.set to command.c_set X-Git-Tag: 0.0.1~36 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=441a3b1816c93351b15ba23e94ce9a69e704907b;p=mudpy.git Rename command.set to command.c_set In order to avoid shadowing any built-in set() method for Python modules, rename the set() function defined in the command module to c_set() and adjust the corresponding caller for the "set" administrative command accordingly. --- diff --git a/mudpy/command.py b/mudpy/command.py index 14640da..2eaf383 100644 --- a/mudpy/command.py +++ b/mudpy/command.py @@ -1,6 +1,6 @@ """User command functions for the mudpy engine.""" -# Copyright (c) 2004-2018 mudpy authors. Permission to use, copy, +# Copyright (c) 2004-2019 mudpy authors. Permission to use, copy, # modify, and distribute this software is granted under terms # provided in the LICENSE file distributed with this software. @@ -341,7 +341,7 @@ def say(actor, parameters): actor.send("What do you want to say?") -def set(actor, parameters): +def c_set(actor, parameters): """Set a facet of an element.""" if not parameters: message = "You must specify an element, a facet and a value." diff --git a/share/command.yaml b/share/command.yaml index 6c399b2..08bf518 100644 --- a/share/command.yaml +++ b/share/command.yaml @@ -1,5 +1,5 @@ --- -_copy: Copyright (c) 2004-2018 mudpy authors. Permission to use, copy, +_copy: Copyright (c) 2004-2019 mudpy authors. Permission to use, copy, modify, and distribute this software is granted under terms provided in the LICENSE file distributed with this software. @@ -78,7 +78,7 @@ command.say.help: This allows you to speak to other characters within the same went teh wrong way?"$(eol) You say, "youre sure i went teh wrong way?" command.say.see_also: chat -command.set.action: mudpy.command.set(actor, parameters) +command.set.action: mudpy.command.c_set(actor, parameters) command.set.administrative: true command.set.description: Set a facet of an element. command.set.help: Invoke it like