Commits

M0E-lnx  committed 8d4d8d5 Merge

Merge branch 'master' of bitbucket.org:VLCore/vinstall

  • Participants
  • Parent commits 533a7f9, 746431b

Comments (0)

Files changed (1)

File vinstall/core/command.py

         """
         assert callable(func), "%r is not callable" % func
         self.func = func
-        self.args = args or ()
+        self.args = args or tuple()
         self.kwargs = kwargs or {}
 
     def __call__(self):
         """
         return apply(self.func, self.args, self.kwargs)
 
+    def __repr__(self):
+        return "%s(<%s %s %s>)" % (self.__class__.__name__, self.func.__name__,
+                repr(self.args), repr(self.kwargs))
+
 
 class ProcessingFacade(object):
 
 
         """
         return self.total_items - self.input_queue.qsize()
-    
+
     def run(self):
         """Overrides Thread.run
 
         f.add_command(func, 1)
 
     def testObserver(self):
-        
+
         whitness = []
 
         class ProcessingObserver(object):