Changeset 907:a15cf102ff2b

Show
Ignore:
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
  • scapy/asn1fields.py

    r876 r907  
    5151 
    5252    def i2repr(self, pkt, x): 
    53         if x is None: 
    54             x = 0 
    5553        return repr(x) 
    5654    def i2h(self, pkt, x): 
  • scapy/fields.py

    r868 r907  
    6161    def i2repr(self, pkt, x): 
    6262        """Convert internal value to a nice representation""" 
    63         if x is None: 
    64             x = 0 
    6563        return repr(self.i2h(pkt,x)) 
    6664    def addfield(self, pkt, s, val):