summaryrefslogtreecommitdiff
path: root/doc/data/messages/f
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/f')
-rw-r--r--doc/data/messages/f/forgotten-debug-statement/bad.py9
-rw-r--r--doc/data/messages/f/forgotten-debug-statement/good.py7
-rw-r--r--doc/data/messages/f/format-combined-specification/bad.py2
-rw-r--r--doc/data/messages/f/format-combined-specification/good.py4
4 files changed, 16 insertions, 6 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)
diff --git a/doc/data/messages/f/format-combined-specification/bad.py b/doc/data/messages/f/format-combined-specification/bad.py
index 6a6a051f2..f530aa0d5 100644
--- a/doc/data/messages/f/format-combined-specification/bad.py
+++ b/doc/data/messages/f/format-combined-specification/bad.py
@@ -1 +1 @@
-print('{} {1}'.format('hello', 'world')) # [format-combined-specification]
+print("{} {1}".format("hello", "world")) # [format-combined-specification]
diff --git a/doc/data/messages/f/format-combined-specification/good.py b/doc/data/messages/f/format-combined-specification/good.py
index 542b77507..8aaab67f2 100644
--- a/doc/data/messages/f/format-combined-specification/good.py
+++ b/doc/data/messages/f/format-combined-specification/good.py
@@ -1,3 +1,3 @@
-print('{0} {1}'.format('hello', 'world'))
+print("{0} {1}".format("hello", "world"))
# or
-print('{} {}'.format('hello', 'world'))
+print("{} {}".format("hello", "world"))