jonasrla edited a comment on issue #13934:
URL: https://github.com/apache/airflow/issues/13934#issuecomment-769876102
Just had a better idea, what about this
```python
self.extra = self.parse_extra(uri_parts.query)
def parse_extra(query):
return json.loads(f"""
{{
{", ".join(['"' + pair[0] + '": ' + pair[1].replace("'", '"')
for pair in parse_qsl(query,
keep_blank_values=True)])}
}}""")
```
basically create a parsable json out of the `parse_qsl` output and let
`json.loads` do what it does best
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]