Skip to content

Commit f54dfd1

Browse files
stdedosPierre-Sassoulas
authored andcommitted
"Message emitted" improvements caused issues
Wrapping "Message emitted" in monospaced formatting, causes `W1507` (`pylint/checkers/stdlib.py`) to fail on a stray space. Fix that - as it seems to be the only outlier. (Might've been nice for a more formal check in the first place 🙏). Signed-off-by: Stavros Ntentos <[email protected]>
1 parent b995af4 commit f54dfd1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pylint/checkers/stdlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ class StdlibChecker(DeprecatedMixin, BaseChecker):
386386
"By default, the first parameter is the group param, not the target param.",
387387
),
388388
"W1507": (
389-
"Using copy.copy(os.environ). Use os.environ.copy() instead. ",
389+
"Using copy.copy(os.environ). Use os.environ.copy() instead.",
390390
"shallow-copy-environ",
391391
"os.environ is not a dict object but proxy object, so "
392392
"shallow copy has still effects on original object. "
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
shallow-copy-environ:7:0:7:21::Using copy.copy(os.environ). Use os.environ.copy() instead. :UNDEFINED
2-
shallow-copy-environ:17:0:17:18::Using copy.copy(os.environ). Use os.environ.copy() instead. :UNDEFINED
1+
shallow-copy-environ:7:0:7:21::Using copy.copy(os.environ). Use os.environ.copy() instead.:UNDEFINED
2+
shallow-copy-environ:17:0:17:18::Using copy.copy(os.environ). Use os.environ.copy() instead.:UNDEFINED

0 commit comments

Comments
 (0)