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

add parenthesis to _print_ and use method _warning_ instead of _warn_ #10

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

Conversation

gamboz
Copy link

@gamboz gamboz commented Nov 12, 2019

I was trying to install Products.Poi 4.0.2 on Plone 5.2 (python 3) and the installer complains that the syntax of print is wrong.

Also, logging.warn seems to be deprecated in favor of logging.warning.

Copy link
Member

@mauritsvanrees mauritsvanrees left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up. The change is mostly good, but I have a comment that should be addressed.

Also, the tests on Travis are failing. That is not caused by your PR, but it would be good if you could look into it. I am not actively using this package currently.
(I think I still have one customer who uses it, but I don't think I can even reach the server...)

print 'Addresses =', addresses
print 'Message ='
print message
print('Subject =', subject)
Copy link
Member

Choose a reason for hiding this comment

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

On Python 3 this is good.
On Python2 the result is ugly:

>>> print("subject =", "foo")
('subject =', 'foo')

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

2 participants