Oops, in python, it's *sys.*stderr
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 12 Dec 2010 20:50:42 +0000 (21:50 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 12 Dec 2010 20:50:42 +0000 (21:50 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/lists.rpc.py

index d48858c..00b498c 100755 (executable)
@@ -148,7 +148,7 @@ class BasicAuthXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
             userdesc = UserDesc(forlife, name, None, 0)
             return (userdesc, perms, vhost)
         else:
-            print >> stderr, "no user found for uid: %s, passwd: %s" % (uid, md5)
+            print >> sys.stderr, "no user found for uid: %s, passwd: %s" % (uid, md5)
             return None
 
 ################################################################################
@@ -242,7 +242,7 @@ def list_call_dispatcher(method, userdesc, perms, vhost, *arg):
         @root:  the handler requires site admin rights
     """
     try:
-        print >> stderr, "calling method: %s" % method
+        print >> sys.stderr, "calling method: %s" % method
         if has_annotation(method, "root") and perms != "admin":
             return 0
         if has_annotation(method, "mlist"):