Bug 32024

Summary: Sphinx не умеет копировать объекты классов с закрытыми property.
Product: Sisyphus Reporter: nbr <nbr>
Component: python-module-sphinxAssignee: Grigory Ustinov <grenka>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: minor    
Priority: P3 CC: antohami, cas, cow, darktemplar, evg, george, grenka, imz, lav, mithraen, nbr, qa_viy, rider, sem, shaba, sin, slev, vitty, viy
Version: unstable   
Hardware: all   
OS: Linux   

Description nbr 2016-04-27 09:54:10 MSK

    
Comment 1 nbr 2016-04-27 09:57:15 MSK
This "new copy" cannot copy classes like that:
class _AttributeString(str):
    """
    Simple string subclass to allow arbitrary attribute access.
    """
    @property
    def stdout(self):
        return str(self)

These classes can happen and, despite that it is possible to add setter to that classes to allow that new copy do this task, it is not the desirable behavour.

Exception occurred:
  File "/usr/lib/python2.7/site-packages/sphinx/util/nodes.py", line 302, in _new_copy
    newnode.line = self.line
AttributeError: can't set attribute
The full traceback has been saved in /usr/src/tmp/sphinx-err-D5RFSs.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error messaDge can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
error: Bad exit status from /usr/src/tmp/rpm-tmp.34537 (%build)
Comment 2 Grigory Ustinov 2021-09-08 17:33:19 MSK
[#282038] DONE (try 12) del=python-module-sphinx