Skip to content

Commit

Permalink
Fix bug caused by mutable keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogaday committed Aug 22, 2017
1 parent 1c39632 commit b0e5f64
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 b0e5f64

Please sign in to comment.