Browse Source

Added default empty argument list to possibility.

Taddeus Kroes 14 năm trước cách đây
mục cha
commit
e08af8cf8a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/possibilities.py

+ 1 - 1
src/possibilities.py

@@ -6,7 +6,7 @@ MESSAGES = {}
 
 
 class Possibility(object):
-    def __init__(self, root, handler, args):
+    def __init__(self, root, handler, args=()):
         self.root = root
         self.handler = handler
         self.args = args