-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hi, this tool works well in many cases. But I found two problems.
- Encoding problem
If a file contains other encoding characters, e.g., Chinese characters and ½, an exception will occur in extract_comments method.
I added "errors='ignore'" in the following statement on my local computer, and it can ignore the above special characters and continue to extract the rest characters of a comment.
def extract_comments(filename, mime=None):
with open(filename, 'r', errors='ignore') as code: So I think we can provide this option to users and let them determine to ignore or not.
- Complex string
The tool throws an exception when parser this java file. I found the cause may be the complex string in line 99.
Thanks for your tool, it helps me a lot. Hope better~
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels