SubProcess._waitpid_cb: fix args for glib compat
authorZac Medico <zmedico@gentoo.org>
Fri, 17 Feb 2012 10:04:28 +0000 (02:04 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 17 Feb 2012 10:04:28 +0000 (02:04 -0800)
pym/_emerge/SubProcess.py

index 9c033c562684de2d8622162486ce42355bada179..76b313fc2f6b55ac84ca926bb7dbe1baa623976c 100644 (file)
@@ -100,7 +100,7 @@ class SubProcess(AbstractPollTask):
                finally:
                        self.scheduler.source_remove(source_id)
 
-       def _waitpid_cb(self, pid, condition, user_data):
+       def _waitpid_cb(self, pid, condition, user_data=None):
                if pid != self.pid:
                        raise AssertionError("expected pid %s, got %s" % (self.pid, pid))
                self._set_returncode((pid, condition))