Skip to content

Commit 1b5a00c

Browse files
zhouzq-thuArusekk
andauthored
code style (add abstractmethod) (Gallopsled#2069)
Co-authored-by: Arusekk <[email protected]>
1 parent a7b362e commit 1b5a00c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ venv
2121
.idea
2222
__pycache__
2323
!.github
24+
.DS_Store

pwnlib/tubes/tube.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from __future__ import absolute_import
33
from __future__ import division
44

5+
import abc
56
import logging
67
import re
78
import six
@@ -1276,6 +1277,7 @@ def __exit__(self, type, value, traceback):
12761277
self.close()
12771278

12781279
# The minimal interface to be implemented by a child
1280+
@abc.abstractmethod
12791281
def recv_raw(self, numb):
12801282
"""recv_raw(numb) -> str
12811283
@@ -1289,6 +1291,7 @@ def recv_raw(self, numb):
12891291

12901292
raise EOFError('Not implemented')
12911293

1294+
@abc.abstractmethod
12921295
def send_raw(self, data):
12931296
"""send_raw(data)
12941297

0 commit comments

Comments
 (0)