ConnectivityFoundry / AwaLWM2M

Awa LWM2M is an implementation of the OMA Lightweight M2M protocol in C.
BSD 3-Clause "New" or "Revised" License
102 stars 66 forks source link

Python 3.6 invalid escape sequence deprecation fixes #351

Closed scop closed 7 years ago

scop commented 7 years ago

https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior

boyvinall commented 7 years ago

Hey @scop, thanks for the PR. This isn't an area I'm too familiar with, and I know there were some previous issues around compatibility between python2 and python3. Do you know if this syntax is valid for python2 also?

scop commented 7 years ago

Yes, it is safe to use in both Python 2 and 3.

DavidAntliff commented 7 years ago

I removed my earlier comments as I was mistaken - this change looks OK to me, although I'd probably opt for "\\&" rather than r"\&" - either works.

boyvinall commented 7 years ago

Hi @scop, please could you update the PR as per @DavidAntliff's comments above? Many thanks.

scop commented 7 years ago

@boyvinall done.