aboutsummaryrefslogtreecommitdiff
path: root/src/mime/quotedprintable/writer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/mime/quotedprintable/writer_test.go')
-rw-r--r--src/mime/quotedprintable/writer_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mime/quotedprintable/writer_test.go b/src/mime/quotedprintable/writer_test.go
index d494c1e3dc..42de0f3d6e 100644
--- a/src/mime/quotedprintable/writer_test.go
+++ b/src/mime/quotedprintable/writer_test.go
@@ -6,7 +6,7 @@ package quotedprintable
import (
"bytes"
- "io/ioutil"
+ "io"
"strings"
"testing"
)
@@ -128,7 +128,7 @@ func TestRoundTrip(t *testing.T) {
}
r := NewReader(buf)
- gotBytes, err := ioutil.ReadAll(r)
+ gotBytes, err := io.ReadAll(r)
if err != nil {
t.Fatalf("Error while reading from Reader: %v", err)
}
@@ -151,7 +151,7 @@ var testMsg = []byte("Quoted-Printable (QP) est un format d'encodage de données
func BenchmarkWriter(b *testing.B) {
for i := 0; i < b.N; i++ {
- w := NewWriter(ioutil.Discard)
+ w := NewWriter(io.Discard)
w.Write(testMsg)
w.Close()
}