On Saturday, 23 November 2013 14:37:09 UTC-8, Roy Smith  wrote:
> 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.

indentation is correct when I trying to paste it here,it is showing like it is 
unindented.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to