diff options
| author | Georg Brandl <georg@python.org> | 2011-01-04 12:55:37 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-01-04 12:55:37 +0100 |
| commit | 90e6146b386be9cccb3f9a123c1f222ddc8e6e21 (patch) | |
| tree | 2bcea31df78b22ab6fbbbb094bb43b131108c185 /sphinx/domains/cpp.py | |
| parent | 901ef024a6309d69bd4e04da2145b97af99cb64e (diff) | |
| download | sphinx-90e6146b386be9cccb3f9a123c1f222ddc8e6e21.tar.gz | |
#560: Change default split_owner to return something useful.
Diffstat (limited to 'sphinx/domains/cpp.py')
| -rw-r--r-- | sphinx/domains/cpp.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 64bf06ca..c2a320eb 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -149,9 +149,9 @@ class DefExpr(object): """Nodes returned by :meth:`get_name` can split off their owning parent. This function returns the owner and the name as a tuple of two items. If a node does not support - it, :exc:`NotImplementedError` is raised. + it, it returns None as owner and self as name. """ - raise NotImplementedError() + return None, self def prefix(self, prefix): """Prefixes a name node (a node returned by :meth:`get_name`).""" @@ -169,9 +169,6 @@ class PrimaryDefExpr(DefExpr): def get_name(self): return self - def split_owner(self): - return None, self - def prefix(self, prefix): if isinstance(prefix, PathDefExpr): prefix = prefix.clone() |
