summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server/none.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/server/none.py')
-rw-r--r--bitbake/lib/bb/server/none.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/none.py b/bitbake/lib/bb/server/none.py
index d4b7fdeea6..e28aa8d7d7 100644
--- a/bitbake/lib/bb/server/none.py
+++ b/bitbake/lib/bb/server/none.py
@@ -115,7 +115,7 @@ class BitBakeServer():
115 115
116 def register_idle_function(self, function, data): 116 def register_idle_function(self, function, data):
117 """Register a function to be called while the server is idle""" 117 """Register a function to be called while the server is idle"""
118 assert callable(function) 118 assert hasattr(function, '__call__')
119 self._idlefuns[function] = data 119 self._idlefuns[function] = data
120 120
121 def idle_commands(self, delay): 121 def idle_commands(self, delay):