summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-06 17:57:09 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-06 17:57:09 -0500
commitc4893ea8a132c06bc71b0ddd63801604e6f85177 (patch)
tree6e046c2445edf62b024a9389dc719865584dc9cf
parent00bb9b0c08c7b7a791a3278a6b1003d7cad471bd (diff)
downloadcmd2-git-c4893ea8a132c06bc71b0ddd63801604e6f85177.tar.gz
Fixed example code
-rwxr-xr-xexamples/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/environment.py b/examples/environment.py
index a24734f1..670b63ac 100755
--- a/examples/environment.py
+++ b/examples/environment.py
@@ -30,7 +30,7 @@ class EnvironmentApp(cmd2.Cmd):
result = 'UV is bad for your skin.'
self.poutput(result)
- def _onchange_degrees_c(self, old, new):
+ def _onchange_degrees_c(self, param_name, old, new):
# if it's over 40C, it's gotta be sunny, right?
if new > 40:
self.sunny = True