Skip to content

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.

2 participants