Changeset 907:a15cf102ff2b
- Timestamp:
- 09/12/08 14:02:13
(4 months ago)
- Author:
- Phil <phil@secdev.org>
- Message:
Have None displayed instead of 0 for automatically computed fields
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r876 |
r907 |
|
| 51 | 51 | |
|---|
| 52 | 52 | def i2repr(self, pkt, x): |
|---|
| 53 | | if x is None: |
|---|
| 54 | | x = 0 |
|---|
| 55 | 53 | return repr(x) |
|---|
| 56 | 54 | def i2h(self, pkt, x): |
|---|
| r868 |
r907 |
|
| 61 | 61 | def i2repr(self, pkt, x): |
|---|
| 62 | 62 | """Convert internal value to a nice representation""" |
|---|
| 63 | | if x is None: |
|---|
| 64 | | x = 0 |
|---|
| 65 | 63 | return repr(self.i2h(pkt,x)) |
|---|
| 66 | 64 | def addfield(self, pkt, s, val): |
|---|