We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aac81c commit 86e461cCopy full SHA for 86e461c
packages/smithy-http/src/smithy_http/interceptors/user_agent.py
@@ -102,7 +102,7 @@ def _build_os_metadata(self) -> list[UserAgentComponent]:
102
* ``os/other``
103
* ``os/other md/foobar#1.2.3``
104
"""
105
- if self._platform_name is None or self._platform_name == "":
+ if self._platform_name in (None, ""):
106
return [UserAgentComponent("os", "other")]
107
108
plt_name_lower = self._platform_name.lower()
0 commit comments