Skip to content

Commit 0f09530

Browse files
cclausspoyea
authored andcommitted
dijkstra.py: Use r"strings" to fix two pylint warnings (TheAlgorithms#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 ==================== ```
1 parent 5b5beb6 commit 0f09530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphs/dijkstra.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def dijkstra(graph, start, end):
7171
"F": [["C", 3], ["E", 3]],
7272
}
7373

74-
"""
74+
r"""
7575
Layout of G2:
7676
7777
E -- 1 --> B -- 1 --> C -- 1 --> D -- 1 --> F
@@ -87,7 +87,7 @@ def dijkstra(graph, start, end):
8787
"F": [],
8888
}
8989

90-
"""
90+
r"""
9191
Layout of G3:
9292
9393
E -- 1 --> B -- 1 --> C -- 1 --> D -- 1 --> F

0 commit comments

Comments
 (0)