summaryrefslogtreecommitdiff
path: root/python/skytools/scripting.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/skytools/scripting.py')
-rw-r--r--python/skytools/scripting.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/skytools/scripting.py b/python/skytools/scripting.py
index 471bbd65..3ed1e3d9 100644
--- a/python/skytools/scripting.py
+++ b/python/skytools/scripting.py
@@ -456,10 +456,6 @@ class BaseScript(object):
sys.exit(1)
self.last_sigint = t
- def stat_add(self, key, value):
- """Old, deprecated function."""
- self.stat_put(key, value)
-
def stat_put(self, key, value):
"""Sets a stat value."""
self.stat_dict[key] = value
@@ -599,6 +595,10 @@ class BaseScript(object):
signal.signal(signal.SIGHUP, self.hook_sighup)
signal.signal(signal.SIGINT, self.hook_sigint)
+ # define some aliases (short-cuts / backward compatibility cruft)
+ stat_add = stat_put # Old, deprecated function.
+ stat_inc = stat_increase
+
##
## DBScript
##