diff options
author | Richard Dale <richard.dale@codethink.co.uk> | 2013-05-23 17:46:13 +0100 |
---|---|---|
committer | Richard Dale <richard.dale@codethink.co.uk> | 2013-05-24 15:53:28 +0100 |
commit | a4bfe0c3c760d116a38a442762192f9751f1164e (patch) | |
tree | b21047b8b5fc7c130cfe8160458d5abbd2ea44bf /morphlib | |
parent | 182cae2a1a3e743d031cd35ba3f77b5a280cd63b (diff) | |
download | morph-a4bfe0c3c760d116a38a442762192f9751f1164e.tar.gz |
Make morphlib.bins.chunk_filenames() a private method
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/bins.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/bins.py b/morphlib/bins.py index 3c6f2c88..6fb7dc5a 100644 --- a/morphlib/bins.py +++ b/morphlib/bins.py @@ -50,7 +50,7 @@ def safe_makefile(self, tarinfo, targetpath): tarfile.TarFile.makefile = safe_makefile -def chunk_filenames(rootdir, regexps, dump_memory_profile=None): +def _chunk_filenames(rootdir, regexps, dump_memory_profile=None): '''Return the filenames for a chunk from the contents of a directory. @@ -96,7 +96,7 @@ def chunk_contents(rootdir, regexps): ''' - filenames = chunk_filenames(rootdir, regexps) + filenames = _chunk_filenames(rootdir, regexps) # The first entry is the rootdir directory, which we don't need filenames.pop(0) contents = [str[len(rootdir):] for str in filenames] @@ -118,7 +118,7 @@ def create_chunk(rootdir, f, regexps, dump_memory_profile=None): # does not complain about an implausibly old timestamp. normalized_timestamp = 683074800 - include = chunk_filenames(rootdir, regexps, dump_memory_profile) + include = _chunk_filenames(rootdir, regexps, dump_memory_profile) dump_memory_profile('at beginning of create_chunk') tar = tarfile.open(fileobj=f, mode='w') |