summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphlib/sysbranchdir.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/sysbranchdir.py b/morphlib/sysbranchdir.py
index 9ad1e2fd..0b3c859a 100644
--- a/morphlib/sysbranchdir.py
+++ b/morphlib/sysbranchdir.py
@@ -95,8 +95,7 @@ class SystemBranchDirectory(object):
# Remove anyleading slashes, or os.path.join below will only
# use the relative part (since it's absolute, not relative).
- while relative.startswith('/'):
- relative = relative[1:]
+ relative = relative.lstrip('/')
return os.path.join(self.root_directory, relative)