DBScript.stat_add - keep the old function for compat
authorMarko Kreen <markokr@gmail.com>
Wed, 18 Jun 2008 09:15:50 +0000 (09:15 +0000)
committerMarko Kreen <markokr@gmail.com>
Wed, 18 Jun 2008 09:15:50 +0000 (09:15 +0000)
python/skytools/scripting.py

index f9a69709d0091a9ca38d2ba946a12b4434b02d89..fe64d41f9b5f5ce6454acd0ccbdca0f1112fc030 100644 (file)
@@ -371,6 +371,10 @@ class DBScript(object):
         "Internal SIGINT handler.  Minimal code here."
         self.stop()
 
+    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