[Python-modules-team] Bug#939084: BytesWarning: Comparison between bytes and string

Teddy Hogeborn teddy at recompile.se
Sun Sep 1 07:49:41 BST 2019


Package: python3-urwid
Version: 2.0.1-2+b1
Severity: minor
Tags: upstream

When running an urwid program using "/usr/bin/python3 -b" (note the -b
option), the urwid package triggered a warning:

[...]
  File "/usr/lib/python3/dist-packages/urwid/display_common.py", line 760, in stop
    self._stop()
  File "/usr/lib/python3/dist-packages/urwid/curses_display.py", line 147, in _stop
    self.tty_signal_keys(*self._old_signal_keys)
  File "/usr/lib/python3/dist-packages/urwid/display_common.py", line 700, in tty_signal_keys
    if intr == 'undefined': intr = 0
BytesWarning: Comparison between bytes and string

I would expect a Python 3 module such as python3-urwid to be able to
run (when the -b option to python3 is used) without generating such
warnings.

-- System Information:
Debian Release: 10.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:C:en:en_GB:sv_SE:sv_FI (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-urwid depends on:
ii  libc6    2.28-10
ii  python3  3.7.3-1

python3-urwid recommends no packages.

Versions of packages python3-urwid suggests:
pn  python-urwid-doc  <none>

-- no debconf information



More information about the Python-modules-team mailing list