summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorDasIch <dasdasich@gmail.com>2010-08-15 11:55:46 +0200
committerDasIch <dasdasich@gmail.com>2010-08-15 11:55:46 +0200
commit7926331c6fa1d80e08ae4d6c19bc1cfdce9e16c8 (patch)
treec31e72f4dc43e03502213c08a6d036492ea98856 /sphinx/domains/cpp.py
parentc8f16b61cc6682fbbe47a5902b3c92e4b9336be0 (diff)
parentc0e116c026aebb10854d8e083e702f6290403116 (diff)
downloadsphinx-7926331c6fa1d80e08ae4d6c19bc1cfdce9e16c8.tar.gz
merge with lehmannro/sphinx-i18n
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index 4dac8925..8df89459 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -110,7 +110,7 @@ class DefinitionError(Exception):
return self.description
def __str__(self):
- return unicode(self.encode('utf-8'))
+ return unicode(self).encode('utf-8')
class DefExpr(object):
@@ -132,6 +132,8 @@ class DefExpr(object):
def __ne__(self, other):
return not self.__eq__(other)
+ __hash__ = None
+
def clone(self):
"""Close a definition expression node"""
return deepcopy(self)