diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-10 07:24:35 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-10 07:24:35 -0400 |
commit | 267622b11b730ec69bf34202fc6258a2614394c5 (patch) | |
tree | 2196c4a5b3d740efca14567de2d0fd33f33db44b /coverage/plugin.py | |
parent | 498b1484e466588a22cef520095f1fd0ed8b8ff8 (diff) | |
download | python-coveragepy-git-267622b11b730ec69bf34202fc6258a2614394c5.tar.gz |
style: use the official designation for utf-8
Yes, this is completely unimportant. Don't ask me why I bothered, I'm
not really sure.
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r-- | coverage/plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/plugin.py b/coverage/plugin.py index 5b38e336..8d149af9 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -359,12 +359,12 @@ class FileReporter: Returns a Unicode string. The base implementation simply reads the `self.filename` file and - decodes it as UTF8. Override this method if your file isn't readable + decodes it as UTF-8. Override this method if your file isn't readable as a text file, or if you need other encoding support. """ with open(self.filename, "rb") as f: - return f.read().decode("utf8") + return f.read().decode("utf-8") def lines(self): """Get the executable lines in this file. |