summaryrefslogtreecommitdiff
path: root/morphlib/bins.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-07-05 13:05:45 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-07-05 15:04:55 +0100
commitdb8f668ddd9a99385f54bc23fc857dda6dc2c826 (patch)
treeced1275e7b6a9aa2338b062aebf1658d26901dfe /morphlib/bins.py
parentdb39f34c4c1b7ca5620f466c34e7fbf8a81709d6 (diff)
downloadmorph-db8f668ddd9a99385f54bc23fc857dda6dc2c826.tar.gz
unit tests: add tests for tarball extraction
Diffstat (limited to 'morphlib/bins.py')
-rw-r--r--morphlib/bins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/bins.py b/morphlib/bins.py
index ce17d0a1..3c6c1bad 100644
--- a/morphlib/bins.py
+++ b/morphlib/bins.py
@@ -66,7 +66,7 @@ def create_chunk(rootdir, f, regexps, dump_memory_profile=None):
yield filename
logging.debug('Creating chunk file %s from %s with regexps %s' %
- (f.name, rootdir, regexps))
+ (getattr(f, 'name', 'UNNAMED'), rootdir, regexps))
dump_memory_profile('at beginning of create_chunk')
compiled = [re.compile(x) for x in regexps]