Skip to content

Commit 4a1f64e

Browse files
authored
Add indent in the document of session.py
1 parent 4aaed1d commit 4a1f64e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scapy/layers/tls/session.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,13 +544,13 @@ def mirror(self):
544544
read right before, as the reading state becomes the writing state, and
545545
vice versa. For instance you could do:
546546
547-
client_hello = open('client_hello.raw').read()
548-
<read other messages>
547+
client_hello = open('client_hello.raw').read()
548+
<read other messages>
549549
550-
m1 = TLS(client_hello)
551-
m2 = TLS(server_hello, tls_session=m1.tls_session.mirror())
552-
m3 = TLS(server_cert, tls_session=m2.tls_session)
553-
m4 = TLS(client_keyexchange, tls_session=m3.tls_session.mirror())
550+
m1 = TLS(client_hello)
551+
m2 = TLS(server_hello, tls_session=m1.tls_session.mirror())
552+
m3 = TLS(server_cert, tls_session=m2.tls_session)
553+
m4 = TLS(client_keyexchange, tls_session=m3.tls_session.mirror())
554554
"""
555555

556556
self.ipdst, self.ipsrc = self.ipsrc, self.ipdst

0 commit comments

Comments
 (0)