Message362437
The softspace attribute of files was removed in Python 3 (mentioned in https://raw.githubusercontent.com/python/cpython/master/Misc/HISTORY)
However, tempfile.SpooledTemporaryFile still has a softspace property that attempts to return read the softspace attribute.
```
In [23]: t = tempfile.SpooledTemporaryFile()
In [24]: t.softspace
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-24-72e5af9f6ded> in <module>
----> 1 t.softspace
/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tempfile.py in softspace(self)
749 @property
750 def softspace(self):
--> 751 return self._file.softspace
752
753 def tell(self):
AttributeError: '_io.BytesIO' object has no attribute 'softspace'
``` |
|
Date |
User |
Action |
Args |
2020-02-21 22:32:08 | hauntsaninja | set | recipients:
+ hauntsaninja |
2020-02-21 22:32:08 | hauntsaninja | set | messageid: <1582324328.38.0.787053917409.issue39719@roundup.psfhosted.org> |
2020-02-21 22:32:08 | hauntsaninja | link | issue39719 messages |
2020-02-21 22:32:08 | hauntsaninja | create | |
|