zopefoundation / Acquisition

Acquisition is a mechanism that allows objects to obtain attributes from the containment hierarchy they're in.
Other
12 stars 12 forks source link

Convert to Python3 #19

Closed ralic closed 7 years ago

ralic commented 7 years ago

using : find . -name '*.py' | xargs 2to3 -w

icemac commented 7 years ago

This package already supports Python 3, see https://github.com/zopefoundation/Acquisition/blob/master/.travis.yml

What do you want to achieve?

ralic commented 7 years ago

Sorry icemac, I shall skip packages that is already python3 compatible before making pr.. current script may create confusion in such case.

hannosch commented 7 years ago

@ralic The 2to3 script won't really work for porting our packages. It tries to convert a codebase to be Python 3 only compatible. We are maintaining Python 2 and 3 compatibility in a single codebase, using a helper library called six and conditional code statements.

2to3 can often point out places which might have to be adjusted, but its output is not sufficient.