This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: mod_cls
Type: behavior Stage:
Components: Documentation tools (Sphinx) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, schuppenies
Priority: normal Keywords: patch

Created on 2008-08-04 12:47 by schuppenies, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mod_cls.patch schuppenies, 2008-08-04 12:47 Patch against r65486
Messages (2)
msg70697 - (view) Author: Robert Schuppenies (schuppenies) * (Python committer) Date: 2008-08-04 12:47
Using sphinx I get the following error if I want to document methods via
automethod:

reading sources... copyright glossary [..] refbrowser Exception
occurred: File
  "[..]/doctools/sphinx/ext/autodoc.py", line 313, in resolve_name
    if not mod_cls:
UnboundLocalError: local variable 'mod_cls' referenced before
assignment. [..]

I am not familiar with the code base, but from the comments the attached
patch should address the issue.
msg70698 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-08-04 12:54
Thanks, fixed in r65489.
History
Date User Action Args
2022-04-11 14:56:37adminsetgithub: 47748
2008-08-04 12:54:55georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg70698
2008-08-04 12:47:17schuppeniescreate