summaryrefslogtreecommitdiff
path: root/doc/data/messages/f/forgotten-debug-statement/bad.py
blob: e37185371be079b5bbdee94fc0240592267e5aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pdb


def find_the_treasure(clues):
    for clue in clues:
        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",
]
find_the_treasure(treasure_hunt)