equal
deleted
inserted
replaced
203 |
203 |
204 capabilities = {'runcommand' : runcommand, |
204 capabilities = {'runcommand' : runcommand, |
205 'getencoding' : getencoding} |
205 'getencoding' : getencoding} |
206 |
206 |
207 def serve(self): |
207 def serve(self): |
208 self.cout.write('capabilities: %s' % ' '.join(self.capabilities.keys())) |
208 hellomsg = 'capabilities: ' + ' '.join(self.capabilities.keys()) |
209 self.cout.write('encoding: %s' % encoding.encoding) |
209 hellomsg += '\n' |
|
210 hellomsg += 'encoding: ' + encoding.encoding |
|
211 |
|
212 # write the hello msg in -one- chunk |
|
213 self.cout.write(hellomsg) |
210 |
214 |
211 try: |
215 try: |
212 while self.serveone(): |
216 while self.serveone(): |
213 pass |
217 pass |
214 except EOFError: |
218 except EOFError: |