Changeset 3082 for branch/UMPA/umpa/packets.py
- Timestamp:
- 07/04/08 18:45:23 (5 years ago)
- Files:
-
- 1 modified
-
branch/UMPA/umpa/packets.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/UMPA/umpa/packets.py
r3078 r3082 25 25 you want to send.''' 26 26 27 def _add_new_protocols(*protos):28 for p in protos:29 self.protos.append(p)30 31 27 def __init__(self, *protos): 32 28 '''You can include some protocols objects in construtor … … 36 32 self._add_new_protocols(protos) 37 33 38 def include(self, *protos):39 '''You can add protocols into your packet.40 '''41 self._add_new_protocols(protos)42 34 def __str__(self): 43 35 '''Prints in human-readable style a content of the packet.''' … … 48 40 for p in self.protos: 49 41 print p 42 43 def include(self, *protos): 44 '''You can add protocols into your packet. 45 ''' 46 self._add_new_protocols(protos) 47 48 def _add_new_protocols(*protos): 49 for p in protos: 50 self.protos.append(p)
