Skip to content

Commit 064221d

Browse files
committed
PEP8 & CI
1 parent 5981bbb commit 064221d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CIFuzz
22

33
on:
4-
pull_request:
4+
push:
55
branches: [master]
66

77
permissions:

scapy/asn1fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def i2repr(self, pkt, x):
686686

687687
class ASN1F_omit(ASN1F_field[None, None]):
688688
"""
689-
ASN.1 field that is not specified. This is simply ommited on the network.
689+
ASN.1 field that is not specified. This is simply omitted on the network.
690690
This is different from ASN1F_NULL which has a network representation.
691691
"""
692692
def m2i(self, pkt, s):
@@ -695,7 +695,7 @@ def m2i(self, pkt, s):
695695

696696
def i2m(self, pkt, x):
697697
# type: (ASN1_Packet, Optional[bytes]) -> bytes
698-
return x
698+
return b""
699699

700700

701701
_CHOICE_T = Union['ASN1_Packet', Type[ASN1F_field[Any, Any]], 'ASN1F_PACKET']

scapy/layers/kerberos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ def make_checksum(self, text, h="sha256"):
13971397

13981398
def verify_checksum(self, text):
13991399
"""
1400-
Verifiy paChecksum and paChecksum2
1400+
Verify paChecksum and paChecksum2
14011401
"""
14021402
if self.paChecksum.val != Hash_SHA().digest(text):
14031403
raise ValueError("Bad paChecksum checksum !")
@@ -1438,7 +1438,7 @@ class KRB_AuthPack(ASN1_Packet):
14381438
ASN1F_optional(
14391439
ASN1F_SEQUENCE_OF(
14401440
"supportedCMSTypes",
1441-
[],
1441+
None,
14421442
X509_AlgorithmIdentifier,
14431443
explicit_tag=0xA2,
14441444
),

scapy/layers/msrpce/msnrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ def establish_secure_channel(
867867
not in netr_server_authkerb_response
868868
or netr_server_authkerb_response.status != 0
869869
):
870-
# An error occured
870+
# An error occurred
871871
netr_server_authkerb_response.show()
872872
raise ValueError("NetrServerAuthenticateKerberos failed !")
873873

scapy/layers/msrpce/rpcclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def _get_bind_context(self, interface):
407407
"""
408408
if interface in self.contexts:
409409
# We have already found acceptable contexts for this interface,
410-
# re-use that.
410+
# reuse that.
411411
return self.contexts[interface]
412412

413413
# NDR 2.0

scapy/layers/tls/cert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ def tree(self):
13821382
certList = list(self)
13831383

13841384
# We make a list of certificates we have to search children for, and iterate
1385-
# through it until it's emtpy.
1385+
# through it until it's empty.
13861386
todo = list(tree)
13871387

13881388
# Iterate

0 commit comments

Comments
 (0)