Mercurial > hgrepos > Python > apps > py-cutils
changeset 11:15c3416d3677
FIX: "msvcrt" is a top-level module on Windows
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 04 Dec 2020 16:13:02 +0100 |
| parents | 77446cd3ea6f |
| children | 5e2c9123f93f |
| files | shasum.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/shasum.py Fri Dec 04 16:10:41 2020 +0100 +++ b/shasum.py Fri Dec 04 16:13:02 2020 +0100 @@ -69,7 +69,7 @@ if len(opts.files) == 1 and opts.files[0] == '-': if PY2: if sys.platform == "win32": - import os. msvcrt + import os, msvcrt # noqa: E401 msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) source = sys.stdin else:
