Skip to content

Commit

Permalink
Parse code in url only
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Jan 20, 2025
1 parent 72245c0 commit e770cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/databricks/labs/ucx/source_code/python/python_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def _definitely_failure(source_code: str, e: Exception) -> MaybeTree:
end_col=(e.error.end_offset or 2) - 1,
),
)
new_issue_url = urllib.parse.quote_plus(
new_issue_url = (
"https://github.com/databrickslabs/ucx/issues/new?title=[BUG]:+Python+parse+error"
"&labels=migrate/code,needs-triage,bug"
"&body=%23+Current+behaviour%0A%0ACannot+parse+the+following+Python+code"
f"%0A%0A%60%60%60+python%0A{source_code}%0A%60%60%60"
f"%0A%0A%60%60%60+python%0A{urllib.parse.quote_plus(source_code)}%0A%60%60%60"
)
return MaybeTree(
None,
Expand Down

0 comments on commit e770cff

Please sign in to comment.