Skip to content

Conversation

@cormier
Copy link
Contributor

@cormier cormier commented Feb 9, 2017

Make it match a single backslash character. Test that it matches a
single backslash. Remove Proximity(Value()): they cannot be equal,
because the space will be escaped in the instanciation of Value, and the
backslash used to escape the space will then be escaped in Proximity.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f579153 on erudit:fix-special-character-escaping into cdd70e8 on swistakm:master.

Copy link
Owner

@swistakm swistakm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Only two minor code style issues.

assert str(
Proximity(Value("foo bar", safe=True), 12, safe=True)
) == '"foo bar"~12'

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add additional new line to satisfy pep8 checks


def test_can_escape_special_characters():
assert str(Q(foo="\\")) == "foo:\\\\"

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add additional new line to satisfy pep8 checks

Make it match a single backslash character. Test that it matches a
single backslash. Remove Proximity(Value()): they cannot be equal,
because the space will be escaped in the instanciation of Value, and the
backslash used to escape the space will then be escaped in Proximity.
@cormier
Copy link
Contributor Author

cormier commented Feb 10, 2017

Thanks for the review. I updated my branch.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2aeb93d on erudit:fix-special-character-escaping into cdd70e8 on swistakm:master.

@swistakm swistakm merged commit ddbb9d8 into swistakm:master Feb 10, 2017
@swistakm
Copy link
Owner

Thanks! I will create new realease in the beginning of the next week when I resolve pypy build issue on travis.

@swistakm
Copy link
Owner

swistakm commented Mar 5, 2017

Released as 1.1.1. Sorry it took so long.

@cormier cormier deleted the fix-special-character-escaping branch March 31, 2017 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants