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('https://github.com/')[:-4]
repo_name = self.package_info['src'].replace('https://github.com/', '', 1)[:-4]
repo = self.gh.get_repo(repo_name)
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