Lines 8-19
__all__ = ['apply_permissions', 'apply_recursive_permissions',
Link Here
|
8 |
'getconfig', 'getlibpaths', 'grabdict', 'grabdict_package', 'grabfile', |
8 |
'getconfig', 'getlibpaths', 'grabdict', 'grabdict_package', 'grabfile', |
9 |
'grabfile_package', 'grablines', 'initialize_logger', 'LazyItemsDict', |
9 |
'grabfile_package', 'grablines', 'initialize_logger', 'LazyItemsDict', |
10 |
'map_dictlist_vals', 'new_protect_filename', 'normalize_path', |
10 |
'map_dictlist_vals', 'new_protect_filename', 'normalize_path', |
11 |
'pickle_read', 'stack_dictlist', 'stack_dicts', 'stack_lists', |
11 |
'pickle_read', 're_compile' 'stack_dictlist', 'stack_dicts', 'stack_lists', |
12 |
'unique_array', 'varexpand', 'write_atomic', 'writedict', 'writemsg', |
12 |
'unique_array', 'varexpand', 'write_atomic', 'writedict', 'writemsg', |
13 |
'writemsg_level', 'writemsg_stdout'] |
13 |
'writemsg_level', 'writemsg_stdout'] |
14 |
|
14 |
|
15 |
import codecs |
15 |
import codecs |
16 |
import os |
16 |
import os |
|
|
17 |
import re |
17 |
import errno |
18 |
import errno |
18 |
import logging |
19 |
import logging |
19 |
import shlex |
20 |
import shlex |
Lines 1297-1299
def getlibpaths(root):
Link Here
|
1297 |
rval.append("/lib") |
1298 |
rval.append("/lib") |
1298 |
|
1299 |
|
1299 |
return [normalize_path(x) for x in rval if x] |
1300 |
return [normalize_path(x) for x in rval if x] |
|
|
1301 |
|
1302 |
re_cache = {} |
1303 |
|
1304 |
def re_compile(regex): |
1305 |
result = re_cache.get(regex) |
1306 |
if result is None: |
1307 |
result = re.compile(regex) |
1308 |
re_cache[regex] = result |
1309 |
return result |