This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: warnings module bug: BytesWarning: str() on a bytes instance
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.0
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: christian.heimes
Priority: normal Keywords: patch

Created on 2007-11-08 14:02 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg57245 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-08 14:02
$ ./python -bb Lib/
Listing /home/heimes/dev/python/py3k/Lib ...
Compiling /home/heimes/dev/python/py3k/Lib/ ...
Traceback (most recent call last):
  File "Lib/", line 162, in <module>
    exit_status = int(not main())
  File "Lib/", line 155, in main
    success = compile_path()
  File "Lib/", line 110, in compile_path
    force, quiet=quiet)
  File "Lib/", line 65, in compile_dir
    ok = py_compile.compile(fullname, None, dfile, True)
  File "/home/heimes/dev/python/py3k/Lib/", line 131, in
    encoding = read_encoding(file, "utf-8")
  File "/home/heimes/dev/python/py3k/Lib/", line 91, in
    return str(
  File "/home/heimes/dev/python/py3k/Lib/", line 62, in warn
  File "/home/heimes/dev/python/py3k/Lib/", line 102, in
    raise message
BytesWarning: str() on a bytes instance
msg57258 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-08 16:36
No bug at all ;)
Date User Action Args
2022-04-11 14:56:28adminsetgithub: 45745
2010-04-27 20:31:22loewissetpriority: normal
2007-11-08 16:36:07christian.heimessetstatus: open -> closed
priority: high -> (no value)
resolution: not a bug
messages: + msg57258
2007-11-08 14:02:42christian.heimescreate