[Python-modules-team] Bug#959724: codespell: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode
Vincent Lefevre
vincent at vinc17.net
Mon May 4 14:43:48 BST 2020
Package: codespell
Version: 1.16.0-2
Severity: important
Tags: upstream fixed-upstream
Since the switch to python3.8, running codespell triggers a warning:
/usr/lib/python3.8/codecs.py:905: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
file = builtins.open(filename, mode, buffering)
The bug against codespell was reported upstream here:
https://github.com/codespell-project/codespell/issues/1331
now closed, as being fixed:
https://github.com/codespell-project/codespell/pull/1401
Note that in addition to being annoying to the user, this can
break scripts, and was actually breaking one for GNU MPFR until
I implemented a workaround to filter this warning.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.4.0-4-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages codespell depends on:
ii python3 3.8.2-3
ii python3-chardet 3.0.4-4
codespell recommends no packages.
codespell suggests no packages.
-- no debconf information
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the Python-modules-team
mailing list