OLD | NEW |
1 # Copyright 2015 The Swarming Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """OSX specific utility functions.""" | 5 """OSX specific utility functions.""" |
6 | 6 |
7 import cgi | 7 import cgi |
8 import ctypes | 8 import ctypes |
9 import os | 9 import os |
10 import platform | 10 import platform |
11 import re | 11 import re |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 header = ( | 330 header = ( |
331 '<?xml version="1.0" encoding="UTF-8"?>\n' | 331 '<?xml version="1.0" encoding="UTF-8"?>\n' |
332 '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ' | 332 '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ' |
333 '"http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n' | 333 '"http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n' |
334 '<plist version="1.0">\n' | 334 '<plist version="1.0">\n' |
335 ' <dict>\n' | 335 ' <dict>\n' |
336 + ''.join(' %s\n' % l for l in entries) + | 336 + ''.join(' %s\n' % l for l in entries) + |
337 ' </dict>\n' | 337 ' </dict>\n' |
338 '</plist>\n') | 338 '</plist>\n') |
339 return header | 339 return header |
OLD | NEW |