diff options
Diffstat (limited to 'doc/data/messages/c/consider-using-get/bad.py')
-rw-r--r-- | doc/data/messages/c/consider-using-get/bad.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/data/messages/c/consider-using-get/bad.py b/doc/data/messages/c/consider-using-get/bad.py new file mode 100644 index 000000000..b820c5698 --- /dev/null +++ b/doc/data/messages/c/consider-using-get/bad.py @@ -0,0 +1,6 @@ +knights = {"Gallahad": "the pure", "Robin": "the brave"} + +if "Gallahad" in knights: # [consider-using-get] + DESCRIPTION = knights["Gallahad"] +else: + DESCRIPTION = "" |