mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
all: Go back to using default ruff quote style.
Commit dc2fcfcc55 seems to have accidentally
changed the ruff quote style to "preserve", instead of keeping it at the
default which is "double".
Put it back to the default and update relevant .py files with this rule.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -28,7 +28,7 @@ l.pop()
|
||||
|
||||
# Try to compress. This will try to allocate a large window and fail.
|
||||
try:
|
||||
g.write('test')
|
||||
g.write("test")
|
||||
except MemoryError:
|
||||
print("MemoryError")
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ except ValueError:
|
||||
|
||||
# incomplete array declaration
|
||||
try:
|
||||
my_print(json.loads('[0,'))
|
||||
my_print(json.loads("[0,"))
|
||||
except ValueError:
|
||||
print("ValueError")
|
||||
|
||||
|
||||
@@ -13,4 +13,4 @@ print(json.loads("9111222333444555666"))
|
||||
print(json.loads("-9111222333444555666"))
|
||||
print(json.loads("9111222333444555666"))
|
||||
print(json.loads("-9111222333444555666"))
|
||||
print(json.loads("[\"9111222333444555666777\",9111222333444555666]"))
|
||||
print(json.loads('["9111222333444555666777",9111222333444555666]'))
|
||||
|
||||
@@ -35,7 +35,7 @@ client_socket = DummySocket()
|
||||
dtls_server_ctx = SSLContext(PROTOCOL_DTLS_SERVER)
|
||||
dtls_server_ctx.verify_mode = CERT_NONE
|
||||
dtls_server = dtls_server_ctx.wrap_socket(
|
||||
server_socket, do_handshake_on_connect=False, client_id=b'dummy_client_id'
|
||||
server_socket, do_handshake_on_connect=False, client_id=b"dummy_client_id"
|
||||
)
|
||||
print("Wrapped DTLS Server")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user