Revision 5ae4945a lib/daemon.py

b/lib/daemon.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2010, 2011 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2010, 2011, 2012 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
420 420

  
421 421
    """
422 422
    GanetiBaseAsyncoreDispatcher.__init__(self)
423
    assert signal_fn == None or callable(signal_fn)
423
    assert signal_fn is None or callable(signal_fn)
424 424
    (self.in_socket, self.out_socket) = socket.socketpair(socket.AF_UNIX,
425 425
                                                          socket.SOCK_STREAM)
426 426
    self.in_socket.setblocking(0)

Also available in: Unified diff