Commit graph

16 commits

Author SHA1 Message Date
Luflosi d4dcc75711
Avoid "DeprecationWarning: invalid escape sequence"
Without this change, many warnings like this will be generated while running pytest:
```
test/test_template.py:3
  /build/source/test/test_template.py:3: DeprecationWarning: invalid escape sequence '\/'
    """!
```
This can also be seen when manually running python with warnings enabled.

This happens because the comment uses a multiline string and Python interprets the backslash in the logo as an escape character and complains that \/ is not a valid escape sequence. To fix this, prepend the string with the letter r to indicate that the backslash should be treated as a literal character, see https://docs.python.org/3/reference/lexical_analysis.html#index-20.
I also applied this change to all the comment strings since that shouldn't break anything and to establish it as a pattern for the future so this problem hopefully never happens again.

This is what I did specifically:
- Change the comment at the top of bw_client.py and bw_server.py to start with `"""!` since that seems to be the pattern here
- Search-and-Replace all occurances of `"""!` with `r"""!`
- Manually change the strings in `logoToLog()` in boswatch/utils/header.py
2023-09-19 17:49:09 +02:00
Bastian Schroll bf16a5c82f
adding sdrInput and inputBase classes 2019-10-28 21:24:09 +01:00
Bastian Schroll c1fed54a1b fix TypeError Exception in processManager 2019-10-18 21:28:19 +02:00
Bastian Schroll 23aa2c7680 fix skipLinesUntil() in non text mode 2019-10-18 21:10:00 +02:00
Bastian Schroll 5cee58a67e fix PEP8 in processManager 2019-10-18 09:21:50 +02:00
Bastian Schroll 1295984aff added skipLinesUntil() to processManager 2019-10-18 09:19:01 +02:00
Bastian Schroll c4b9f54df6 edit processManager demo 2019-10-09 20:10:49 +02:00
Bastian Schroll d87247783d fix in TCPClient 2019-09-20 18:19:46 +02:00
Bastian Schroll 6f40095c52 test multimon with procManager 2019-09-20 17:38:53 +02:00
Bastian Schroll 34dd0172cf some improves and add example 2019-09-19 10:48:27 +02:00
Bastian Schroll 36e02eca4c some fixes in processManager 2019-03-09 11:42:50 +01:00
Bastian Schroll bb1fd118f5 little improvements in processManager class 2019-03-08 07:44:44 +01:00
Bastian Schroll 0cb79569dd improve docstrings 2019-03-05 08:33:35 +01:00
Bastian Schroll 0b3d71cd4a add logging 2019-03-05 08:24:55 +01:00
Bastian Schroll 0ee177f8ea improve ProcessManager 2019-03-05 07:49:15 +01:00
Bastian Schroll 54e5338000 first processManager testing 2019-03-04 19:43:32 +01:00