Update gcodetools for Inkscape 1.4 / Python 3 compatibility#2
Update gcodetools for Inkscape 1.4 / Python 3 compatibility#2
Conversation
Converted codebase from Python 2 to Python 3. - Fixed tuple unpacking in function arguments. - Replaced `xrange` with `range`. - Replaced `unicode` with `str`. - Updated `raise` syntax. - Updated `print` statements to functions. - Fixed string encoding/decoding logic for Python 3 strings. - Added `__truediv__` alias for division compatibility. - Fixed type checking using `isinstance`. - Fixed tab/space indentation issues. Co-authored-by: jejmule <8749731+jejmule@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Updated
gcodetools-dev.pyand helper files (biarc.py,csp.py,points.py,create_inx.py) to be compatible with Python 3, which is required for Inkscape 1.4. This involves syntax changes (print function, exception handling, tuple unpacking removal) and logic updates (string handling, iterators).PR created automatically by Jules for task 17142679468927395417 started by @jejmule