summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2020-11-14 16:10:22 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2020-11-28 16:09:53 +0100
commitc42c677b34fb1de65f55174fc43410d4a6acad50 (patch)
treeae9af43a84a78b0b641aca02c07bfcb456ab7249
parent08472654b40d813de33a98344f073feeb0911fdb (diff)
downloadpylint-git-c42c677b34fb1de65f55174fc43410d4a6acad50.tar.gz
Fix a typo in testutils.py
-rw-r--r--pylint/testutils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/testutils.py b/pylint/testutils.py
index 43bd94447..d910e2a7c 100644
--- a/pylint/testutils.py
+++ b/pylint/testutils.py
@@ -125,7 +125,7 @@ class TestReporter(BaseReporter):
sigle = msg_id[0]
if linesep != "\n":
# 2to3 writes os.linesep instead of using
- # the previosly used line separators
+ # the previously used line separators
msg = msg.replace("\r\n", "\n")
self.messages.append("%s:%3s%s: %s" % (sigle, line, obj, msg))
@@ -294,7 +294,6 @@ def _create_tempfile(content=None):
# see https://bugs.python.org/issue14243
file_handle, tmp = tempfile.mkstemp()
if content:
- # erff
write(file_handle, bytes(content, "ascii"))
try:
yield tmp