~mvo/software-center/lp959612

« back to all changes in this revision

Viewing changes to softwarecenter/db/application.py

  • Committer: Michael Vogt
  • Date: 2012-04-26 07:22:36 UTC
  • mfrom: (2989.1.7 trunk)
  • Revision ID: michael.vogt@ubuntu.com-20120426072236-owk79xvu7tl89sid
mergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 
128
128
    # special methods
129
129
    def __hash__(self):
130
 
        return ("%s:%s" % (self.appname, self.pkgname)).__hash__()
 
130
        return utf8("%s:%s" % (
 
131
                utf8(self.appname), utf8(self.pkgname))).__hash__()
131
132
 
132
133
    def __cmp__(self, other):
133
134
        return self.apps_cmp(self, other)