We can reproduce following command:

$ sudo py3compile -p python3-apport -V 3.0-
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering 
(buffering=1) isn't supported in binary mode, the default buffer size will be 
used
  self.stdin = io.open(p2cwrite, 'wb', bufsize)


py3comipe set "bufsize=1" for subprocess.Popen(): 
https://salsa.debian.org/cpython-team/python3-defaults/blob/master/py3compile#L132-133

    process = Popen(cmd, bufsize=1, shell=True,
                    stdin=PIPE, close_fds=True)

However newer python (from 3.8?) warn on buffering=1.

* 
https://github.com/python/cpython/commit/a2670565d8f5c502388378aba1fe73023fd8c8d4
* https://bugs.python.org/issue32236

** Bug watch added: Python Roundup #32236
   http://bugs.python.org/issue32236

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1863414

Title:
  Have many "/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line
  buffering (buffering=1) isn't supported in binary mode, the default
  buffer size will be used" on simple APT usage

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.8/+bug/1863414/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to