Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions _pydev_imps/_pydev_SocketServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@ def handle_error(self, request, client_address):
The default is to print a traceback and continue.

"""
print '-'*40
print 'Exception happened during processing of request from',
print client_address
print ('-'*40)
print ('Exception happened during processing of request from',)
print (client_address)
Comment on lines +339 to +341
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print ('-'*40)
print ('Exception happened during processing of request from',)
print (client_address)
print('-'*40)
print('Exception happened during processing of request from',)
print(client_address)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely you wand to replace line 340 with print('...', end='')?

import traceback
traceback.print_exc() # XXX But this goes to stderr!
print '-'*40
print ('-'*40)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print ('-'*40)
print('-'*40)



class TCPServer(BaseServer):
Expand Down