summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/do-release.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/do-release.py b/scripts/do-release.py
index 5c4fff04..239e7085 100644
--- a/scripts/do-release.py
+++ b/scripts/do-release.py
@@ -499,9 +499,7 @@ class Upload(object):
return os.path.join(new_parent, os.path.basename(path))
def parent_dir(self, path):
- if path.endswith('/'):
- path = path[:-1]
- return os.path.dirname(path)
+ return os.path.dirname(path.rstrip('/'))
def make_images_public(self, image_files):
server = config.images_server