BOSWatch 3 Core Repo - Documentation at http://docs.boswatch.de
Find a file
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
.github update codeQL workflow 2022-05-25 06:30:11 +00:00
boswatch Avoid "DeprecationWarning: invalid escape sequence" 2023-09-19 17:49:09 +02:00
config fixed rtl_fm path 2022-03-17 22:20:42 +01:00
docu upgrade to checkout v2, install python via action, add missing files to docs 2022-05-23 23:49:21 +02:00
logo little adds and changes 2018-01-07 23:41:52 +01:00
module Avoid "DeprecationWarning: invalid escape sequence" 2023-09-19 17:49:09 +02:00
plugin Avoid "DeprecationWarning: invalid escape sequence" 2023-09-19 17:49:09 +02:00
test Avoid "DeprecationWarning: invalid escape sequence" 2023-09-19 17:49:09 +02:00
.gitignore save router run stats to stats file 2019-10-25 14:33:18 +02:00
build_docu.sh add docu build script 2019-09-19 17:34:59 +02:00
bw_client.py Avoid "DeprecationWarning: invalid escape sequence" 2023-09-19 17:49:09 +02:00
bw_server.py Avoid "DeprecationWarning: invalid escape sequence" 2023-09-19 17:49:09 +02:00
Dockerfile Update Dockerfile 2021-02-16 15:08:30 +01:00
FileHead.template.py Avoid "DeprecationWarning: invalid escape sequence" 2023-09-19 17:49:09 +02:00
init_db.sql Change spacing in init_db.sql and add comment on table creation 2021-03-04 12:40:57 +01:00
install.sh Update dependencies and correct issue 2022-02-17 20:01:26 +01:00
LICENSE Create LICENSE 2018-09-18 06:16:24 +02:00
pytest.sh fix some pep8 errors 2020-02-24 23:52:20 +01:00
README.md Update README.md 2021-02-03 10:46:12 +01:00
requirements.txt Limit flake8 to 4.0.1 to fix tests 2023-01-23 14:22:25 +00:00

BOSWatch

BOSWatch

pytest documentation CodeQL

Es wird darauf hingewiesen, dass für die Teilnahme am BOS-Funk nur nach den Technischen Richtlinien der BOS zugelassene Funkanlagen verwendet werden dürfen. Der BOS-Funk ist ein nichtöffentlicher mobiler Landfunk. Privatpersonen gehören nicht zum Kreis der berechtigten Funkteilnehmer. (Quelle: TR-BOS)

Documentation: https://docs.boswatch.de

Wenn dir dieses Projekt gefällt, gib uns bitte einen STAR


The intercept of the German BOS radio is strictly prohibited and will be prosecuted. The use is only permitted for authorized personnel.

If you like this project, please give us a STAR