revelc / pyaccumulo

Python Client Library for Apache Accumulo
Apache License 2.0
26 stars 23 forks source link

add python 3 support #28

Open DrSensor opened 7 years ago

DrSensor commented 7 years ago

This convert pyaccumulo to support both python2 and python3 using this command:

$ futurize -0 -w -a -n **.py
$ futurize -0 -w -a -n pyaccumulo/**.py
$ futurize -0 -w -a -n pyaccumulo/**/*.py

Also there is manual change in version.py which replace

sys.stderr.write(traceback.format_exc(exc))

with

sys.stderr.write(traceback.format_exc())