summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-09-06 14:06:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-09-06 14:06:18 -0400
commitc6e4b52136002e99fc043e7d8ae1f95c7dd8a3bb (patch)
treed635d3ca11be43e05111317d657a507b291329cb
parentde467542b5638e3f5fb621789328d29c39cfddc9 (diff)
downloadpython-coveragepy-git-c6e4b52136002e99fc043e7d8ae1f95c7dd8a3bb.tar.gz
Hmm, not sure why it worked yesterday, but this is better.coverage-3.4b2
-rw-r--r--distcmd/fixtar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/distcmd/fixtar.py b/distcmd/fixtar.py
index 1a226cb9..c613c9d7 100644
--- a/distcmd/fixtar.py
+++ b/distcmd/fixtar.py
@@ -42,9 +42,9 @@ class fixtar(Command):
for itarinfo in itar:
otarinfo = otar.gettarinfo(itarinfo.name)
if the_dir is None:
- n = itarinfo.name
- assert n.count("/") == 1 and n.endswith("/")
- the_dir = n[:-1]
+ n = itarinfo.name.rstrip("/")
+ assert "/" not in n
+ the_dir = n
if itarinfo.isfile():
otarinfo.mode = 0644
else: