mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27:02 +00:00
dijkstra.py: Use r"strings" to fix two pylint warnings (#1052)
``` =============================== warnings summary =============================== graphs/dijkstra.py:81 /home/travis/build/TheAlgorithms/Python/graphs/dijkstra.py:81: DeprecationWarning: invalid escape sequence \ """ graphs/dijkstra.py:97 /home/travis/build/TheAlgorithms/Python/graphs/dijkstra.py:97: DeprecationWarning: invalid escape sequence \ """ -- Docs: https://docs.pytest.org/en/latest/warnings.html =================== 126 passed, 7 warnings in 19.35 seconds ==================== ```
This commit is contained in:
parent
5b5beb61d6
commit
0f09530707
|
@ -71,7 +71,7 @@ G = {
|
|||
"F": [["C", 3], ["E", 3]],
|
||||
}
|
||||
|
||||
"""
|
||||
r"""
|
||||
Layout of G2:
|
||||
|
||||
E -- 1 --> B -- 1 --> C -- 1 --> D -- 1 --> F
|
||||
|
@ -87,7 +87,7 @@ G2 = {
|
|||
"F": [],
|
||||
}
|
||||
|
||||
"""
|
||||
r"""
|
||||
Layout of G3:
|
||||
|
||||
E -- 1 --> B -- 1 --> C -- 1 --> D -- 1 --> F
|
||||
|
|
Loading…
Reference in New Issue
Block a user