mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 13:22:58 +00:00
Cleanup with ruff check (#963)
* Implement improvements suggested by ruff check. * Add ruff check to CI. * Add changelog fragment.
This commit is contained in:
@@ -331,7 +331,7 @@ class _OpensshWriter:
|
||||
for name, data in value:
|
||||
writer.string(name)
|
||||
# SSH option data is encoded twice though this behavior is not documented
|
||||
writer.string(_OpensshWriter().string(data).bytes() if data else bytes())
|
||||
writer.string(_OpensshWriter().string(data).bytes() if data else b"")
|
||||
|
||||
self.string(writer.bytes())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user