Ignore:
Timestamp:
Dec 17, 2011, 5:52:59 PM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
287d6ec
Parents:
5d24a81
git-author:
Jessica B. Hamrick <jhamrick@…> (12/17/11 17:52:59)
git-committer:
Jessica B. Hamrick <jhamrick@…> (12/17/11 17:52:59)
Message:

Comment formatting standardization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/gutenbach/ipp/attribute.py

    rdf51061 r5c5fe6d  
    88
    99class Attribute(object):
    10     """
    11     In addition to what the RFC reports, an attribute has an
    12     'attribute tag', which specifies what type of attribute it is.
    13     It is 1 bytes long, and comes before the list of values.
     10    """In addition to what the RFC reports, an attribute has an
     11    'attribute tag', which specifies what type of attribute it is.  It
     12    is 1 bytes long, and comes before the list of values.
    1413
    1514    From RFC 2565:
     
    3837    |                     value                   |   w bytes |
    3938    -----------------------------------------------------------
     39
    4040    """
    4141
    4242    def __init__(self, name=None, values=None):
    43         """
    44         Initialize an Attribute.  This function can be called in three
    45         different ways:
     43        """Initialize an Attribute.  This function can be called in
     44        three different ways:
    4645
    4746            Attribute() -- creates an empty Attribute
     
    5756
    5857            values -- a list of Values.  May not be empty.
     58
    5959        """
    6060
     
    7373    @property
    7474    def packed_value(self):
    75         """
    76         Packs the attribute data into binary data.
     75        """Packs the attribute data into binary data.
     76       
    7777        """
    7878
     
    132132    @property
    133133    def packed_value_size(self):
     134        """Gets the total size of the attribute.
     135       
    134136        """
    135         Gets the total size of the attribute.
    136         """
     137
    137138        return len(self.packed_value)
    138139
Note: See TracChangeset for help on using the changeset viewer.