Skip to content

Commit

Permalink
Model: Use standard deepcopy method to clone boltons.urlutils.URL
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Sep 13, 2024
1 parent 9e52464 commit 2a5df04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cratedb_toolkit/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def navigate(self, source_path: str, target_path: str) -> "AddressPair":
source_url_query_parameters = self.source_url.query_params
target_url_query_parameters = self.target_url.query_params

source_url = URL(str(self.source_url))
target_url = URL(str(self.target_url))
source_url = deepcopy(self.source_url)
target_url = deepcopy(self.target_url)

# Q: What the hack?
# A: It makes subsequent `.navigate()` operations work.
Expand Down

0 comments on commit 2a5df04

Please sign in to comment.