Skip to content
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

mark these strings as raw. #16

Merged
merged 1 commit into from Aug 22, 2013
Merged

Conversation

@MichaelBlume
Copy link
Contributor

@MichaelBlume MichaelBlume commented Aug 22, 2013

A lot of these strings contain backslashes, which are there to tell
regex, or bash, to escape things, not to tell python to escape things.
We should mark this explicitly so python doesn't get confused.

print 'hello\nworld'
hello
world
print r'hello\nworld'
hello\nworld

A lot of these strings contain backslashes, which are there to tell
regex, or bash, to escape things, not to tell python to escape things.
We should mark this explicitly so python doesn't get confused.

>>> print 'hello\nworld'
hello
world
>>> print r'hello\nworld'
hello\nworld
@philip-loggly
Copy link
Contributor

@philip-loggly philip-loggly commented Aug 22, 2013

Nice

philip-loggly added a commit that referenced this pull request Aug 22, 2013
@philip-loggly philip-loggly merged commit 8ec2884 into loggly:master Aug 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.