Issue 2550850
Created on 2014-08-01 19:42 by drboone, last changed 2016-06-19 14:59 by rouilj.
msg5127 |
Author: [hidden] (drboone) |
Date: 2014-08-01 19:42 |
|
anypy/email_.py line 130 says:
last_word += BSPACE + word
but BSPACE isn't defined anywhere on my python 2.7 system. Online
sources suggest this is only defined in 3.x versions.
|
msg5128 |
Author: [hidden] (schlatterbeck) |
Date: 2014-08-02 16:07 |
|
On Fri, Aug 01, 2014 at 07:42:38PM +0000, Dennis Boone wrote:
>
> anypy/email_.py line 130 says:
>
> last_word += BSPACE + word
>
> but BSPACE isn't defined anywhere on my python 2.7 system. Online
> sources suggest this is only defined in 3.x versions.
Interesting, this has been there for years. Do you have a test-case that
triggers it?
Thanks
Ralf
|
msg5613 |
Author: [hidden] (rouilj) |
Date: 2016-06-19 06:13 |
|
Supplied a definition for BSPACE since it seems to not be defined
anywhere (even searching a python 3.4 install didn't turn up a
definition for
it). BSPACE definition taken from:
http://svn.python.org/projects/python/branches/py3k-urllib/Lib/email/header.py
which is almost identical code. Put definition of BSPACE just before
the reference to minimize scope and chance of unintended issues. This
isn't the best place because it will be redefined every time through,
but this is not a heavily used code path or it would have been
found/fixed long ago.
Fixed in: 89c2c1a88927
I would still like to know what header input triggered it so we can add
to the test suite.
|
|
Date |
User |
Action |
Args |
2016-06-19 14:59:19 | rouilj | set | type: crash |
2016-06-19 06:13:09 | rouilj | set | status: new -> fixed assignee: rouilj resolution: fixed messages:
+ msg5613 nosy:
+ rouilj |
2014-08-02 16:07:13 | schlatterbeck | set | nosy:
+ schlatterbeck messages:
+ msg5128 title: anypy/email_.py uses BSPACE which is not defined in python 2.7 -> anypy/email_.py uses BSPACE which is not defined in python 2.7 |
2014-08-01 19:42:38 | drboone | create | |
|