RogerioBlanco / PixelCanvasBot

A bot to pixelcanvas.io
63 stars 24 forks source link

Changes for python 3 compatiblity #83

Closed Yelinz closed 6 years ago

Yelinz commented 6 years ago

When using python 3.6.6 i found some errors, the PR #79 wasn't tested enough.

In python 3.6.6 there was no attribute message on the exception object and in both versions the object is already the desired message, so there is no need to do exception.message.

raw_input() has also been renamed to input() in python 3, but it also exists in python 2 and it is equivalent to eval(input()) which is not secure, so we only use input() when raw_input() doesn't exists.

Excepting errors but not using as to define the error variable doesn't work in python 3

Yelinz commented 6 years ago

Resolved conflicts

Qh0stM4N commented 6 years ago

thx fastest feedback.