Hi,

>     service = service_dirty.partition("\0", 1)[0]
> TypeError: partition() takes exactly one argument (2 given)
This seems to be a bug. Partition() takes indeed only one argument. Please 
remove the ",1"
service = service_dirty.partition("\0")[0]
should do the trick.

@Jean, partition() was introduced with Python >= 2.5
To stay compatible with 2.4, it should be
service = service_dirty.split("\0", 1)[0]


Gerhard


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Shinken-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to