def get_key_pair(self, keyname):
        try:
            return self.get_all_key_pairs(keynames=[keyname])[0]
        except self.ResponseError, e:
            if e.code == 'InvalidKeyPair.NotFound':
                return None
            else:
                raise
Assign an expression to a variable in the current context.
dataset/ETHPy150Open darcyliu/storyboard/boto/ec2/connection.py/EC2Connection.get_key_pair--crossover with--dataset/ETHPy150Open comolongo/Yz-Javascript-Django-Template-Compiler/customtags/assign.py/do_assign