summaryrefslogtreecommitdiff
path: root/horizon/utils/memoized.py
diff options
context:
space:
mode:
authorJulie Pichon <jpichon@redhat.com>2013-04-02 22:08:33 +0100
committerJulie Pichon <jpichon@redhat.com>2013-04-02 22:08:33 +0100
commit29cb3251afd65fdd0a98b76d58f05458aaab3b47 (patch)
tree0b312acebd4d38c15c0bfff9572c208a8713f897 /horizon/utils/memoized.py
parentc38b989c5378981bb33f48818a91ac211c125c22 (diff)
downloadhorizon-29cb3251afd65fdd0a98b76d58f05458aaab3b47.tar.gz
Return an empty string rather than None when calling repr()
Repr() should return "a string containing a printable representation of an object," which is a convention Sphinx 1.2 relies on when building the docs. Fixes bug 1163369 Change-Id: Ieefd69c5b4b521500679df7745f60cb3a4d2f77c
Diffstat (limited to 'horizon/utils/memoized.py')
-rw-r--r--horizon/utils/memoized.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/utils/memoized.py b/horizon/utils/memoized.py
index c3d7e7c56..6c954b553 100644
--- a/horizon/utils/memoized.py
+++ b/horizon/utils/memoized.py
@@ -40,7 +40,7 @@ class memoized(object):
def __repr__(self):
'''Return the function's docstring.'''
- return self.func.__doc__
+ return self.func.__doc__ or ''
def __get__(self, obj, objtype):
'''Support instance methods.'''