diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2010-09-06 14:06:18 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-09-06 14:06:18 -0400 |
| commit | 49abfd49244c853e4e0a1a201a35622ee2ba8fb3 (patch) | |
| tree | a348cf699300ae317ef54d9f8ba916eb2d2fa115 | |
| parent | 0491130d1cba7f8bcbeb1ea0be2828363f2158cb (diff) | |
| download | python-coveragepy-coverage-3.4b2.tar.gz | |
Hmm, not sure why it worked yesterday, but this is better.coverage-3.4b2
| -rw-r--r-- | distcmd/fixtar.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/distcmd/fixtar.py b/distcmd/fixtar.py index 1a226cb..c613c9d 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: |
