snl-dakota / dakota

The core Dakota project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python SyntaxWarning on raw strings

rzehumat opened this issue · comments

Since Python 3.6 there is SyntaxWarning such as

/home/foo/dakota_tutorial/cantilever/2/./cantilever:16: SyntaxWarning: invalid escape sequence '\_'
  outputHeader = """
/home/foo/dakota_tutorial/cantilever/2/./cantilever:126: SyntaxWarning: invalid escape sequence '\_'
  print("""                          ____                  ____      

This is explained e.g. at this StackOverflow.

I suggest a fix in #87