Ignore:
Timestamp:
Dec 23, 2011, 9:04:31 PM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
793432f
Parents:
aded2d1
git-author:
Jessica B. Hamrick <jhamrick@…> (12/23/11 21:04:31)
git-committer:
Jessica B. Hamrick <jhamrick@…> (12/23/11 21:04:31)
Message:

Use classes for standard IPP attributes

File:
1 edited

Legend:

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

    r0c4f3bf rb828a96  
    5454        self.tag = tag # one byte, the type of value
    5555        self.value     = value     # non-binary value of self.value
     56
     57    def __cmp__(self, other):
     58        eq = (self.value == other.value) and (self.tag == other.tag)
     59        return 0 if eq else 1
    5660
    5761    @classmethod
Note: See TracChangeset for help on using the changeset viewer.