Skip to content

mark these strings as raw.#16

Merged
philip-loggly merged 1 commit intologgly:masterfrom
MichaelBlume:mark-raw-strings
Aug 22, 2013
Merged

mark these strings as raw.#16
philip-loggly merged 1 commit intologgly:masterfrom
MichaelBlume:mark-raw-strings

Conversation

@MichaelBlume
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants