Commit 477c2300 authored by Felix Exner's avatar Felix Exner Committed by Oskar Roesler
Browse files

Use replace instead of lstrip

lstrip will remove any character from the input string until a character
not in the input string is found.
parent 8509b0bd
......@@ -109,7 +109,7 @@ class Update(Routines):
def get_nested_package_path(self):
"""Give back the first path containing the package name."""
repo_name = self.package_info['src'].lstrip('')[:-4]
repo_name = self.package_info['src'].replace('', '', 1)[:-4]
repo =
contents = repo.get_contents(".")
for content in contents:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment