Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .audit/oberstet_fix_1938.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- [ ] I did **not** use any AI-assistance tools to help create this pull request.
- [x] I **did** use AI-assistance tools to *help* create this pull request.
- [x] I have read, understood and followed the projects' [AI Policy](https://github.com/crossbario/autobahn-python/blob/main/AI_POLICY.md) when creating code, documentation etc. for this pull request.

Submitted by: @oberstet
Date: 2026-09-21
Related issue(s): #1938
Branch: oberstet:fix_1938
8 changes: 0 additions & 8 deletions src/autobahn/asyncio/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@
__all__ = ("Component", "run")


def _unique_list(seq):
"""
Return a list with unique elements from sequence, preserving order.
"""
seen = set()
return [x for x in seq if x not in seen and not seen.add(x)]


def _camel_case_from_snake_case(snake):
parts = snake.split("_")
return parts[0] + "".join(s.capitalize() for s in parts[1:])
Expand Down
8 changes: 0 additions & 8 deletions src/autobahn/twisted/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@
__all__ = ("Component", "run")


def _unique_list(seq):
"""
Return a list with unique elements from sequence, preserving order.
"""
seen = set()
return [x for x in seq if x not in seen and not seen.add(x)]


def _camel_case_from_snake_case(snake):
parts = snake.split("_")
return parts[0] + "".join(s.capitalize() for s in parts[1:])
Expand Down
8 changes: 0 additions & 8 deletions src/autobahn/websocket/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -3475,20 +3475,12 @@ def succeedHandshake(self, res) -> None:

# end of HTTP response headers
response += "\x0d\x0a"
response_body = None

# send out opening handshake response
#
self.log.debug("sending HTTP response:\n\n{response}", response=response)
self.sendData(response.encode("utf8"))

if response_body:
self.log.debug(
"sending HTTP response body:\n\n{octets}",
octets=_LazyHexFormatter(response_body),
)
self.sendData(response_body)

# save response for testsuite
#
self.http_response_data = response
Expand Down
Loading