~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/list-team-members

  • Committer: Gary Poster
  • Date: 2009-12-07 16:47:42 UTC
  • mto: This revision was merged to the branch mainline in revision 9988.
  • Revision ID: gary.poster@canonical.com-20091207164742-38atxdua5x21qlsw
commit cowboyed change to list-team-members script to handle unicode by explicitly encoding to utf8

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
                print "Error, no such team: %s" % teamname
53
53
                return 1
54
54
        # We don't want duplicates, so use "set" get unique only
55
 
        print "\n".join(sorted(list(set(member_details))))
 
55
        print "\n".join(detail.encode('utf-8') for detail in
 
56
                        sorted(list(set(member_details))))
56
57
        return 0
57
58
 
58
59
if __name__ == '__main__':