OSDN Git Service
(root)
/
nvdajp
/
nvdajp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
518492c
)
characterProcessing.CharacterDescriptions.getCharacterDescription: better handle...
author
Michael Curran
<mick@kulgan.net>
Mon, 4 Apr 2011 07:14:05 +0000
(17:14 +1000)
committer
Michael Curran
<mick@kulgan.net>
Mon, 4 Apr 2011 07:14:05 +0000
(17:14 +1000)
source/characterProcessing.py
patch
|
blob
|
history
diff --git
a/source/characterProcessing.py
b/source/characterProcessing.py
index
4fa7064
..
703c855
100644
(file)
--- a/
source/characterProcessing.py
+++ b/
source/characterProcessing.py
@@
-77,7
+77,9
@@
class CharacterDescriptions(object):
"""
\r
Looks up the given character and returns a string containing all the descriptions found.
\r
"""
\r
- return u"\u3002".join(self._entries.get(character))
\r
+ desc=self._entries.get(character)
\r
+ if not desc: return None
\r
+ return u"\u3002".join(desc)
\r
\r
_charDescLocaleDataMap=LocaleDataMap(CharacterDescriptions)
\r
\r