[issue22059] incorrect type conversion from str to bytes in asynchat module in asynchat.py

2014-08-27 Thread STINNER Victor

STINNER Victor added the comment:

Since Hoxily didn't reply the question, I suggest to close this issue as not a 
bug since we don't have enough information to understand it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22059
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22059] incorrect type conversion from str to bytes in asynchat module in asynchat.py

2014-08-27 Thread R. David Murray

R. David Murray added the comment:

Since it is effectively a deprecated module, let's do that.

--
resolution:  - works for me
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22059
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22059] incorrect type conversion from str to bytes in asynchat module in asynchat.py

2014-07-24 Thread Hoxily

New submission from Hoxily:

refer to  http://hg.python.org/cpython/file/5d70ac83d104/Lib/asynchat.py#l123

--
components: Library (Lib)
hgrepos: 265
messages: 223842
nosy: brett.cannon, hoxily, tim.peters
priority: normal
severity: normal
status: open
title: incorrect type conversion from str to bytes in asynchat module in 
asynchat.py
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22059
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22059] incorrect type conversion from str to bytes in asynchat module in asynchat.py

2014-07-24 Thread Hoxily

Changes by Hoxily hox...@qq.com:


--
hgrepos:  -265

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22059
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22059] incorrect type conversion from str to bytes in asynchat module in asynchat.py

2014-07-24 Thread R. David Murray

R. David Murray added the comment:

So you are saying that that if will never trigger and can be deleted?

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22059
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22059] incorrect type conversion from str to bytes in asynchat module in asynchat.py

2014-07-24 Thread Zachary Ware

Zachary Ware added the comment:

Hoxily: It's best to spell out the bug you have found, preferably with an 
error/exception message and a way to reproduce it.

My best guess at the problem you're reporting (after looking at that line about 
4 times) is that bytes(str, self.encoding) should be bytes(data, 
self.encoding) and you're getting an error message like TypeError: encoding 
or errors without a string argument.  Is that correct?

Also, note that asynchat is deprecated, you would probably be better off using 
asyncio.

--
nosy: +zach.ware
versions: +Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22059
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22059] incorrect type conversion from str to bytes in asynchat module in asynchat.py

2014-07-24 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22059
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com