@@ -231,7 +231,7 @@ def open_flags_mapping(flags, arch):
231
231
QL_ARCH .ARM64 : arm64_open_flags ,
232
232
QL_ARCH .MIPS : mips_open_flags ,
233
233
QL_OS .MACOS : mac_open_flags ,
234
- }. get ( arch )
234
+ }[ arch ]
235
235
236
236
ret = ["O_RDONLY" ]
237
237
@@ -286,7 +286,8 @@ def socket_type_mapping(t, arch):
286
286
QL_ARCH .ARM64 : arm_socket_types ,
287
287
QL_ARCH .MIPS : mips_socket_types ,
288
288
QL_OS .MACOS : linux_socket_types ,
289
- }.get (arch )
289
+ }[arch ]
290
+
290
291
# https://code.woboq.org/linux/linux/net/socket.c.html#1363
291
292
t &= SOCK_TYPE_MASK
292
293
return _constant_mapping (t , socket_type_map , single_mapping = True )
@@ -301,7 +302,7 @@ def socket_domain_mapping(p, arch):
301
302
QL_ARCH .ARM64 : arm_socket_domain ,
302
303
QL_ARCH .MIPS : mips_socket_domain ,
303
304
QL_OS .MACOS : macos_socket_domain ,
304
- }. get ( arch )
305
+ }[ arch ]
305
306
306
307
return _constant_mapping (p , socket_domain_map , single_mapping = True )
307
308
@@ -315,7 +316,7 @@ def socket_level_mapping(t, arch):
315
316
QL_ARCH .ARM64 : arm_socket_level ,
316
317
QL_ARCH .MIPS : mips_socket_level ,
317
318
QL_OS .MACOS : linux_socket_level ,
318
- }. get ( arch )
319
+ }[ arch ]
319
320
320
321
return _constant_mapping (t , socket_level_map , single_mapping = True )
321
322
@@ -329,7 +330,7 @@ def socket_ip_option_mapping(t, arch):
329
330
QL_ARCH .ARM64 : linux_socket_ip_options ,
330
331
QL_ARCH .MIPS : mips_socket_ip_options ,
331
332
QL_OS .MACOS : macos_socket_ip_options ,
332
- }. get ( arch )
333
+ }[ arch ]
333
334
334
335
return _constant_mapping (t , socket_option_map , single_mapping = True )
335
336
@@ -343,6 +344,6 @@ def socket_option_mapping(t, arch):
343
344
QL_ARCH .ARM64 : arm_socket_options ,
344
345
QL_ARCH .MIPS : mips_socket_options ,
345
346
QL_OS .MACOS : linux_socket_options ,
346
- }. get ( arch )
347
+ }[ arch ]
347
348
348
349
return _constant_mapping (t , socket_option_map , single_mapping = True )
0 commit comments