Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3 compatible syntax tweak #189

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

stonebig
Copy link

No description provided.

Comment on lines +339 to +341
print ('-'*40)
print ('Exception happened during processing of request from',)
print (client_address)
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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants