这是indexloc提供的服务,不要输入任何密码
Skip to content

typo in _strip_string? #21

@sieu-n

Description

@sieu-n

Description

There appears to be a typo in the _strip_string function of the math_equivalence.py file, where an unnecessary escape character is used with the percent sign. The code uses string.replace("\%", "") when it seems to me that string.replace("%", "") was intended. I'm not 100% certain whether this behavior is unintentional but currently is_equiv("50%", "50") == False. The current code also throws a warning for python 3.11.

string = string.replace("\%", "")

Suggestion

string = string.replace("\%", "")
->
string = string.replace("%", "")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions