Fix #8266 (Problem when connecting with Sony Reader - 'au_map')

This commit is contained in:
Kovid Goyal 2011-01-10 10:11:09 -07:00
commit c0bc8cd562

View File

@ -98,9 +98,10 @@ class AumSortedConcatenate(object):
def finalize(self):
keys = self.ans.keys()
if len(keys) == 0:
return None
if len(keys) == 1:
l = len(keys)
if l == 0:
return 'Unknown:::Unknown'
if l == 1:
return self.ans[keys[0]]
return ':#:'.join([self.ans[v] for v in sorted(keys)])