socialwifi / RouterOS-api

Python API to RouterBoard devices produced by MikroTik.
MIT License
251 stars 100 forks source link

Fix invalid escape sequence by using double backslashes #95

Closed Strykar closed 2 months ago

Strykar commented 2 months ago
==> Starting package()...
/usr/lib/python3.12/site-packages/routeros_api/sentence.py:9: SyntaxWarning: invalid escape sequence '\.' 
/usr/lib/python3.12/site-packages/routeros_api/sentence.py:9: SyntaxWarning: invalid escape sequence '\.'
Strykar commented 2 months ago

Added RouterOS-api package to Arch Linux AUR: https://aur.archlinux.org/packages/python-routeros-api Thanks for this, works a treat!

jgoclawski commented 2 months ago

@Strykar Thank you for noticing that warning. I've fixed it using a different approach in https://github.com/socialwifi/RouterOS-api/commit/bd2aaa7559de39a8d744fe3de3ca33a82705f649 and also added automated testing and linting. Hopefully this will prevent such warnings in the future :) Thanks again.