Kadir Can Ozden
Kadir Can Ozden
## Summary `prepare_tag_prefix` crashes with a `TypeError` when given a tag prefix containing non-ASCII characters (e.g., Unicode) in Python 3. ## Problem In Python 3, iterating over `bytes` yields `int`...
`unquote('')` in `_utils.py` raises `IndexError` because it accesses `value[0]` without checking string length first. This can occur when parsing digest auth `WWW-Authenticate` headers containing parameters with empty unquoted values (e.g....
The `options()`, `head()`, `post()`, `put()`, `patch()`, and `delete()` methods on both `Client` and `AsyncClient` are missing `| None` in their `auth` parameter type annotation. This is inconsistent with `get()`, `request()`,...
When closing a client with proxy mounts, if the main transport's `close()`/`__exit__()` raises an exception, the mounted proxy transports would never be cleaned up. This wraps transport cleanup in `try/finally`...
When serving resources via `serve_fileobj` (e.g. zipapp resources loaded with `importlib.resources`), `content_length` can be `None`. This causes `get_ranges()` to crash with a `TypeError` when comparing integers against `None`. This adds...
In `TCPClient._create_stream`, if `IOStream()` constructor raises `OSError`, the except handler references `stream` which was never assigned: ```python try: stream = IOStream(socket_obj, max_buffer_size=max_buffer_size) except OSError as e: fu = Future() fu.set_exception(e)...
Several `raise` statements across the codebase pass format arguments to exception constructors using a comma instead of `%` operator: ```python # Before (comma creates a tuple message): raise ValueError("message %s",...
## Summary Fix a gap in the `humanize()` `if/elif` chain that causes `~31-day` deltas within the same calendar month to report "a year ago" instead of "a month ago". ##...
## Summary Fix the Italian locale's `"seconds"` timeframe to use the correct plural form. ## Problem The `"seconds"` timeframe in `ItalianLocale` is: ```python "seconds": "{0} qualche secondo", ``` "qualche secondo"...
## Summary Fix `_TIMESTAMP_RE` to correctly match single-digit timestamps like epoch `0`. ## Problem The current regex pattern is: ```python _TIMESTAMP_RE = re.compile(r"^\-?\d+\.?\d+$") ``` This requires `\d+` (one or more...