Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assets: default asset name to empty string
Instead of allowing it to be given an explicit None. The problem with allowing None is that the name is given to Python's urlparse(), and it has the behavior of returning either a ParseResult or a ParseResultBytes depending on the input given. To prevent having to add further logic on a large part of the asset code, let's just normalize the input. Reference: https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse Signed-off-by: Cleber Rosa <crosa@redhat.com>
- Loading branch information