Skip to content

Commit

Permalink
Merge pull request #1 from Ogaday/bug-fix-1
Browse files Browse the repository at this point in the history
Fix bug caused by mutable keyword arguments
  • Loading branch information
Ogaday authored Aug 22, 2017
2 parents 3434c47 + b0e5f64 commit 70e8f79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kbcstorage/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,5 @@ def _extend(self, base, parts):
joined (:obj:`str`): The parts joined to base by forward slash,
eg. 'http://example.com/hello/a/deeper/path'.
"""
parts.insert(0, base)
return '/'.join([str(part).strip('/') for part in parts if
str(part).strip('/')])
return '/'.join([base, *[str(part).strip('/') for part in parts if
str(part).strip('/')]])

0 comments on commit 70e8f79

Please sign in to comment.