summaryrefslogtreecommitdiff
path: root/doc/data/messages/d
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/d')
-rw-r--r--doc/data/messages/d/deprecated-method/bad.py2
-rw-r--r--doc/data/messages/d/dict-init-mutate/bad.py4
-rw-r--r--doc/data/messages/d/dict-iter-missing-items/bad.py2
-rw-r--r--doc/data/messages/d/dict-iter-missing-items/good.py2
-rw-r--r--doc/data/messages/d/duplicate-code/bad/orange.py2
-rw-r--r--doc/data/messages/d/duplicate-value/bad.py2
-rw-r--r--doc/data/messages/d/duplicate-value/good.py2
7 files changed, 8 insertions, 8 deletions
diff --git a/doc/data/messages/d/deprecated-method/bad.py b/doc/data/messages/d/deprecated-method/bad.py
index dd75a258a..78870f3c3 100644
--- a/doc/data/messages/d/deprecated-method/bad.py
+++ b/doc/data/messages/d/deprecated-method/bad.py
@@ -1,3 +1,3 @@
import logging
-logging.warn("I'm coming, world !") # [deprecated-method]
+logging.warn("I'm coming, world !") # [deprecated-method]
diff --git a/doc/data/messages/d/dict-init-mutate/bad.py b/doc/data/messages/d/dict-init-mutate/bad.py
index d6d1cfe18..d7db9c528 100644
--- a/doc/data/messages/d/dict-init-mutate/bad.py
+++ b/doc/data/messages/d/dict-init-mutate/bad.py
@@ -1,3 +1,3 @@
fruit_prices = {} # [dict-init-mutate]
-fruit_prices['apple'] = 1
-fruit_prices['banana'] = 10
+fruit_prices["apple"] = 1
+fruit_prices["banana"] = 10
diff --git a/doc/data/messages/d/dict-iter-missing-items/bad.py b/doc/data/messages/d/dict-iter-missing-items/bad.py
index ec9dbd924..52efa3ad7 100644
--- a/doc/data/messages/d/dict-iter-missing-items/bad.py
+++ b/doc/data/messages/d/dict-iter-missing-items/bad.py
@@ -1,3 +1,3 @@
-data = {'Paris': 2_165_423, 'New York City': 8_804_190, 'Tokyo': 13_988_129}
+data = {"Paris": 2_165_423, "New York City": 8_804_190, "Tokyo": 13_988_129}
for city, population in data: # [dict-iter-missing-items]
print(f"{city} has population {population}.")
diff --git a/doc/data/messages/d/dict-iter-missing-items/good.py b/doc/data/messages/d/dict-iter-missing-items/good.py
index b94f125a3..3eb97f9e2 100644
--- a/doc/data/messages/d/dict-iter-missing-items/good.py
+++ b/doc/data/messages/d/dict-iter-missing-items/good.py
@@ -1,3 +1,3 @@
-data = {'Paris': 2_165_423, 'New York City': 8_804_190, 'Tokyo': 13_988_129}
+data = {"Paris": 2_165_423, "New York City": 8_804_190, "Tokyo": 13_988_129}
for city, population in data.items():
print(f"{city} has population {population}.")
diff --git a/doc/data/messages/d/duplicate-code/bad/orange.py b/doc/data/messages/d/duplicate-code/bad/orange.py
index faafce747..9be3c7b40 100644
--- a/doc/data/messages/d/duplicate-code/bad/orange.py
+++ b/doc/data/messages/d/duplicate-code/bad/orange.py
@@ -1,4 +1,4 @@
-class Orange: # [duplicate-code]
+class Orange: # [duplicate-code]
def __init__(self):
self.remaining_bites = 3
diff --git a/doc/data/messages/d/duplicate-value/bad.py b/doc/data/messages/d/duplicate-value/bad.py
index bf6f8ad00..975eebdae 100644
--- a/doc/data/messages/d/duplicate-value/bad.py
+++ b/doc/data/messages/d/duplicate-value/bad.py
@@ -1 +1 @@
-incorrect_set = {'value1', 23, 5, 'value1'} # [duplicate-value]
+incorrect_set = {"value1", 23, 5, "value1"} # [duplicate-value]
diff --git a/doc/data/messages/d/duplicate-value/good.py b/doc/data/messages/d/duplicate-value/good.py
index c30cd7821..beeeb39b9 100644
--- a/doc/data/messages/d/duplicate-value/good.py
+++ b/doc/data/messages/d/duplicate-value/good.py
@@ -1 +1 @@
-correct_set = {'value1', 23, 5}
+correct_set = {"value1", 23, 5}