clawpack / visclaw

Clawpack visualization tools
http://www.clawpack.org
BSD 3-Clause "New" or "Revised" License
29 stars 47 forks source link

Use raw strings for strings with backslashes #241

Closed delgadom closed 5 years ago

delgadom commented 5 years ago

Currently the strings 'C:\cygwin' are interpreted as containing an invalid escape sequence, which raises a warning:

/clawpack/visclaw/src/python/visclaw/gaugetools.py:638: DeprecationWarning: invalid escape sequence \c
    if rootdir[0:9] == 'C:\cygwin' and plotdir[0:9] != 'C:\cygwin':