Skip to content

Escape octet in string #1824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 21, 2020
Merged

Conversation

palaviv
Copy link
Contributor

@palaviv palaviv commented Mar 21, 2020

This actually fixes the current failures in test_bytes. In addition I simplified lexer by merging lex_byte into lex_string.

@@ -557,6 +571,11 @@ where
error: LexicalErrorType::StringError,
location: self.get_pos(),
});
} else if is_bytes && !c.is_ascii() {
Copy link
Member

@coolreader18 coolreader18 Mar 21, 2020

Choose a reason for hiding this comment

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

It looks like clippy wants you to merge this condition with the one above: if c == '\n' && !triple_quoted || is_bytes && !c.is_ascii().

@coolreader18 coolreader18 merged commit 1f8c80b into RustPython:master Mar 21, 2020
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.

2 participants