summaryrefslogtreecommitdiff
path: root/doc/data/messages/f/forgotten-debug-statement
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/f/forgotten-debug-statement')
-rw-r--r--doc/data/messages/f/forgotten-debug-statement/bad.py9
-rw-r--r--doc/data/messages/f/forgotten-debug-statement/good.py7
2 files changed, 13 insertions, 3 deletions
diff --git a/doc/data/messages/f/forgotten-debug-statement/bad.py b/doc/data/messages/f/forgotten-debug-statement/bad.py
index 6a2a34580..e37185371 100644
--- a/doc/data/messages/f/forgotten-debug-statement/bad.py
+++ b/doc/data/messages/f/forgotten-debug-statement/bad.py
@@ -3,10 +3,15 @@ import pdb
def find_the_treasure(clues):
for clue in clues:
- pdb.set_trace() # [forgotten-debug-statement]
+ pdb.set_trace() # [forgotten-debug-statement]
if "treasure" in clue:
return True
return False
-treasure_hunt = ["Dead Man's Chest", "X marks the spot", "The treasure is buried near the palm tree"]
+
+treasure_hunt = [
+ "Dead Man's Chest",
+ "X marks the spot",
+ "The treasure is buried near the palm tree",
+]
find_the_treasure(treasure_hunt)
diff --git a/doc/data/messages/f/forgotten-debug-statement/good.py b/doc/data/messages/f/forgotten-debug-statement/good.py
index 21132cb47..7896ff50e 100644
--- a/doc/data/messages/f/forgotten-debug-statement/good.py
+++ b/doc/data/messages/f/forgotten-debug-statement/good.py
@@ -4,5 +4,10 @@ def find_the_treasure(clues):
return True
return False
-treasure_hunt = ["Dead Man's Chest", "X marks the spot", "The treasure is buried near the palm tree"]
+
+treasure_hunt = [
+ "Dead Man's Chest",
+ "X marks the spot",
+ "The treasure is buried near the palm tree",
+]
find_the_treasure(treasure_hunt)