Fix SyntaxWarning: invalid escape sequences in astparser.py#83
Fix SyntaxWarning: invalid escape sequences in astparser.py#83KOLLIVENNELACHOWDARY wants to merge 1 commit intosugarlabs:masterfrom
Conversation
Use raw strings for regex patterns to prevent SyntaxWarning about invalid escape sequences in Python 3.6+. - Line 224: Change FLOAT_REGEXP_STR to use raw string - Line 226: Change RANGE_REGEXP to use raw string Fixes sugarlabs#82
|
Why have you removed the end of line at end of file? |
|
Ohh I am sorry , It was by mistake... |
|
May I know why is this issue is still open?? |
|
This is a pull request, not an issue. It is open because you opened it and nobody else has closed it. Issue #82 is open because nobody has fixed the problem. My question to you was give me a reason to accept your change that removes the end of line mark at the end of a source file. I didn't think it was necessary to point you to which file or which end of line, because GitHub does a good job of that already, in the changes tab, with a big glaring icon coloured red. Why did you remove that end of line mark? If you can answer that, then you know what you are doing. If you cannot answer that, then go back into your experience to find what you did that caused it, repeat your steps, but omit the step that caused it. Or you could just ignore what you did wrong and fix it by adding an end of line mark, but that's not a self-reflective practice. |
|
As I have mentioned it earlier , I made it accidentally not intentionally..I am so sorry for that too |
|
Good explanation. You are yet to fix it though. We wait for you to fix it. |
|
Thank you.. |

Problem
The module produces warnings about invalid escape sequences in regex strings and deprecated AST APIs.
Solution
Changes Made
SyntaxWarning Fixes (Issue #82):
DeprecationWarning Fixes (Python 3.14 Compatibility):
Changes
Testing
Verification
Command: python3 -W all -c "import astparser"
Result: Clean, no output = no warnings
Fixes #82