Skip to content

Commit f91a517

Browse files
committed
Fix TypeError w/issue mahmoud#158 and PR mahmoud#159
This makes only one more test pass (now only 3 failing) but at least prevents the `TypeError` when attempting to add a `list` and a `tuple`.
1 parent e90cd63 commit f91a517

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boltons/urlutils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,8 @@ def navigate(self, dest):
654654
if dest.path.startswith(u'/'): # absolute path
655655
new_path_parts = list(dest.path_parts)
656656
else: # relative path
657-
new_path_parts = self.path_parts[:-1] + dest.path_parts
657+
new_path_parts = list(self.path_parts[:-1]) \
658+
+ list(dest.path_parts)
658659
else:
659660
new_path_parts = list(self.path_parts)
660661
if not query_params:

0 commit comments

Comments
 (0)