From: Michal 'vorner' Vaner Date: Mon, 26 Aug 2013 09:05:50 +0000 (+0200) Subject: [2857] Assert type of parameter X-Git-Tag: bind10-1.2.0beta1-release~228^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d893b54513dfba249cf209ac09b0271861437bd;p=thirdparty%2Fkea.git [2857] Assert type of parameter --- diff --git a/src/bin/memmgr/memmgr.py.in b/src/bin/memmgr/memmgr.py.in index 9141d6b88b..889ce03aba 100755 --- a/src/bin/memmgr/memmgr.py.in +++ b/src/bin/memmgr/memmgr.py.in @@ -128,6 +128,7 @@ class Memmgr(BIND10Server): """ Send a command to the builder, with proper synchronization. """ + assert isinstance(cmd, tuple) with self._builder_cv: self._builder_command_queue.append(cmd) self._builder_cv.notify_all()