splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
687 stars 369 forks source link

extra text before comment block begins in internals.py #369

Closed clarafeb1 closed 3 years ago

clarafeb1 commented 3 years ago

https://github.com/splunk/splunk-sdk-python/blob/b36d6ebd988c9884a4eeb875e2c8fb50f1068d73/splunklib/searchcommands/internals.py#L78

aij commented 3 years ago

That's actually a raw string, so that the \ in it won't need to be escaped. https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals

It was added in 98ab7bbd94eae05b1d393a61c6fdc1f042a15e88.

AFAICT, it should work even in python2. https://docs.python.org/2/reference/lexical_analysis.html#string-literals

Is it creating a problem?

clarafeb1 commented 3 years ago

Not that I can tell, at least not for what I was using the SDK for. It was just something that was noticed, but I didn't realize it had a reason to be there :)