OLD | NEW |
1 # Copyright 2015 The LUCI 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 under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be 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 |
12 import subprocess | 12 import subprocess |
13 import time | 13 import time |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 header = ( | 333 header = ( |
334 '<?xml version="1.0" encoding="UTF-8"?>\n' | 334 '<?xml version="1.0" encoding="UTF-8"?>\n' |
335 '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ' | 335 '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ' |
336 '"http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n' | 336 '"http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n' |
337 '<plist version="1.0">\n' | 337 '<plist version="1.0">\n' |
338 ' <dict>\n' | 338 ' <dict>\n' |
339 + ''.join(' %s\n' % l for l in entries) + | 339 + ''.join(' %s\n' % l for l in entries) + |
340 ' </dict>\n' | 340 ' </dict>\n' |
341 '</plist>\n') | 341 '</plist>\n') |
342 return header | 342 return header |
OLD | NEW |