1 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
10 return subprocess
.check_output([
21 def FindValidIdentity():
22 lines
= ListIdentities().splitlines()
23 # Look for something like "2) XYZ "iPhone Developer: Name (ABC)""
24 exp
= re
.compile('[0-9]+\) ([A-F0-9]+) "([^"]*)"')
29 if "iPhone Developer" in res
.group(2):
34 if __name__
== '__main__':
35 print FindValidIdentity()