In article <8445e47e-7efe-4f37-9b40-db2896d58...@googlegroups.com>,
 Bhanu Karthik <bhanukarthik2...@gmail.com> wrote:

>  data = sock.recv(RECV_BUFFER)
>                           username = str(sock.getpeername())
>                           username = usernames[username]      
>                           if data == "/quit":
>                               print data
>                               sock.send("bye")                        
>                               sock.close()
>                               CONNECTION_LIST.remove(sock)
> 
> 
> this is exact code..
> it is not even entering the if ...
> I tried ( c= (data is '/quit')if c)

That can't be the exact code.  What you posted is a syntax error because 
the line after the "if" statement isn't indented properly.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to