Next / Previous / Contents / Shipman's homepage

67.2. Net2Field.flatten()

The two character that actually appear are left-justified in the four-character output field.

baseclasses.py
# - - -   N e t 2 F i e l d . f l a t t e n   - - -

    @staticmethod
    def flatten(net2Field):
        '''Flatten a Net2Field.
        '''
        if  net2Field is None:
            return BLANK_NET_OUT
        else:
            return net2Field.value.ljust(NET_OUT_L)