summaryrefslogtreecommitdiff
path: root/doc/data/messages/c/confusing-with-statement
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/c/confusing-with-statement')
-rw-r--r--doc/data/messages/c/confusing-with-statement/bad.py2
-rw-r--r--doc/data/messages/c/confusing-with-statement/good.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/data/messages/c/confusing-with-statement/bad.py b/doc/data/messages/c/confusing-with-statement/bad.py
index d84288058..e6570a5aa 100644
--- a/doc/data/messages/c/confusing-with-statement/bad.py
+++ b/doc/data/messages/c/confusing-with-statement/bad.py
@@ -1,2 +1,2 @@
-with open('file.txt', 'w') as fh1, fh2: # [confusing-with-statement]
+with open("file.txt", "w") as fh1, fh2: # [confusing-with-statement]
pass
diff --git a/doc/data/messages/c/confusing-with-statement/good.py b/doc/data/messages/c/confusing-with-statement/good.py
index e8b39d500..bcedaafa6 100644
--- a/doc/data/messages/c/confusing-with-statement/good.py
+++ b/doc/data/messages/c/confusing-with-statement/good.py
@@ -1,3 +1,3 @@
-with open('file.txt', 'w', encoding="utf8") as fh1:
- with open('file.txt', 'w', encoding="utf8") as fh2:
+with open("file.txt", "w", encoding="utf8") as fh1:
+ with open("file.txt", "w", encoding="utf8") as fh2:
pass