SETI/rms-tools

julian_dateparser.py has deprecated use of escape character

Closed this issue · 1 comments

The julian_dateparser.py unit tests throw the following warning:

../pds-tools/julian_dateparser.py:1603
  /home/testrunner/tests/pdsfile/src/pds-tools/julian_dateparser.py:1603: DeprecationWarning: invalid escape sequence '\ '
    self.assertRaises(ParseException, parser.parseString, "2000 \ 01 \ 1.")

You can see the warnings by running:

python -m pytest julian_dateparser.py

You will only see the warning the first time you do this. You have to change the modification date on the source file (like touch julian_dateparser.py) in order to see it a second time.