Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warnings module bug: BytesWarning: str() on a bytes instance #45745

Closed
tiran opened this issue Nov 8, 2007 · 2 comments
Closed

warnings module bug: BytesWarning: str() on a bytes instance #45745

tiran opened this issue Nov 8, 2007 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@tiran
Copy link
Member

tiran commented Nov 8, 2007

BPO 1404
Nosy @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/tiran'
closed_at = <Date 2007-11-08.16:36:07.526>
created_at = <Date 2007-11-08.14:02:42.649>
labels = ['invalid', 'type-bug', 'library']
title = 'warnings module bug: BytesWarning: str() on a bytes instance'
updated_at = <Date 2010-04-27.20:31:22.895>
user = 'https://github.com/tiran'

bugs.python.org fields:

activity = <Date 2010-04-27.20:31:22.895>
actor = 'loewis'
assignee = 'christian.heimes'
closed = True
closed_date = <Date 2007-11-08.16:36:07.526>
closer = 'christian.heimes'
components = ['Library (Lib)']
creation = <Date 2007-11-08.14:02:42.649>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 1404
keywords = ['patch']
message_count = 2.0
messages = ['57245', '57258']
nosy_count = 1.0
nosy_names = ['christian.heimes']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1404'
versions = ['Python 3.0']

@tiran
Copy link
Member Author

tiran commented Nov 8, 2007

$ ./python -bb Lib/compileall.py
Listing /home/heimes/dev/python/py3k/Lib ...
Compiling /home/heimes/dev/python/py3k/Lib/pydoc.py ...
Traceback (most recent call last):
  File "Lib/compileall.py", line 162, in <module>
    exit_status = int(not main())
  File "Lib/compileall.py", line 155, in main
    success = compile_path()
  File "Lib/compileall.py", line 110, in compile_path
    force, quiet=quiet)
  File "Lib/compileall.py", line 65, in compile_dir
    ok = py_compile.compile(fullname, None, dfile, True)
  File "/home/heimes/dev/python/py3k/Lib/py_compile.py", line 131, in
compile
    encoding = read_encoding(file, "utf-8")
  File "/home/heimes/dev/python/py3k/Lib/py_compile.py", line 91, in
read_encoding
    return str(m.group(1))
  File "/home/heimes/dev/python/py3k/Lib/warnings.py", line 62, in warn
    globals)
  File "/home/heimes/dev/python/py3k/Lib/warnings.py", line 102, in
warn_explicit
    raise message
BytesWarning: str() on a bytes instance

@tiran tiran self-assigned this Nov 8, 2007
@tiran tiran added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Nov 8, 2007
@tiran
Copy link
Member Author

tiran commented Nov 8, 2007

No bug at all ;)

@tiran tiran closed this as completed Nov 8, 2007
@tiran tiran added the invalid label Nov 8, 2007
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant