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/attributegroup.py

    rdf51061 r5c5fe6d  
    88
    99class AttributeGroup(object):
    10     """
    11     An AttributeGroup consists of an attribute-group-tag, followed by
    12     a sequence of Attributes. According to RFC 2565, "Within an
     10    """An AttributeGroup consists of an attribute-group-tag, followed
     11    by a sequence of Attributes. According to RFC 2565, 'Within an
    1312    attribute-sequence, if two attributes have the same name, the
    14     first occurrence MUST be ignored.", so we can effectively treat
     13    first occurrence MUST be ignored.', so we can effectively treat
    1514    this as an ordered dictionary.
     15   
    1616    """
    1717
    1818    def __init__(self, attribute_group_tag=None, attributes=[]):
    19         """
    20         Initialize an AttributeGroup.  An AttributeGroup can be
     19        """Initialize an AttributeGroup.  An AttributeGroup can be
    2120        initialized in three ways:
    2221
     
    3130
    3231            attributes -- a list of attributes
     32
    3333        """
    3434
     
    4343
    4444    def __getitem__(self, name):
    45         """
    46         Returns a list of attributes which have name 'name'.
     45        """Returns a list of attributes which have name 'name'.
     46       
    4747        """
    4848       
     
    6262
    6363    def __setitem__(self, name, attribute):
    64         """
    65         Sets an attribute in the attribute group. Note that the key is
    66         ignored and the attribute is queried for its name.
     64        """Sets an attribute in the attribute group. Note that the key
     65        is ignored and the attribute is queried for its name.
     66       
    6767        """
    6868
     
    7777
    7878    def extend(self, attributes):
    79         """
    80         Sets the attributes for the attribute group.
     79        """Sets the attributes for the attribute group.
     80       
    8181        """
    8282
     
    9393    @property
    9494    def packed_value(self):
    95         """
    96         Convert the AttributeGroup to binary.
     95        """Convert the AttributeGroup to binary.
     96       
    9797        """
    9898
Note: See TracChangeset for help on using the changeset viewer.