chalmersplasmatheory/DREAM

Invalid escape sequences in DREAMIO and DistributionFunction

Closed this issue · 0 comments

In recent versions of Python, the following warnings are reported:

DREAM/DREAMIO.py:45: SyntaxWarning: invalid escape sequence '\w'
  m1 = re.search('(\w+://)(.+@)*([\w\-\_\d\.]+)(:[\d]+){0,1}/*(.*)', filename)
DREAM/DREAMIO.py:46: SyntaxWarning: invalid escape sequence '\w'
  m2 = re.search('(.+@)*([\w\-\_\d\.]+):(.*)', filename)
DREAM/Output/DistributionFunction.py:82: SyntaxWarning: invalid escape sequence '\p'