~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/scripts/listteammembers.py

  • Committer: Curtis Hovey
  • Date: 2010-04-07 13:07:27 UTC
  • mto: This revision was merged to the branch mainline in revision 10650.
  • Revision ID: curtis.hovey@canonical.com-20100407130727-s1k503xdj3f7owc0
Fixed pattern name. Tested that the sshkey comment is sanitised.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    """Used if non-existent team name is specified."""
28
28
 
29
29
 
30
 
bad_ssh_patters = re.compile('[\r\n\f]')
 
30
bad_ssh_pattern = re.compile('[\r\n\f]')
31
31
 
32
32
 
33
33
def make_sshkey_params(member, type_name, key):
34
34
    sshkey = "%s %s %s" % (
35
35
        type_name,
36
 
        bad_ssh_patters.sub('', key.keytext),
37
 
        bad_ssh_patters.sub('', key.comment).strip())
 
36
        bad_ssh_pattern.sub('', key.keytext),
 
37
        bad_ssh_pattern.sub('', key.comment).strip())
38
38
    return dict(name=member.name, sshkey=sshkey)
39
39
 
40
40