Changeset ffbe41d for server/lib/gutenbach/ipp/core/attributegroup.py
- Timestamp:
- Jan 10, 2012, 7:25:33 PM (12 years ago)
- Branches:
- no-cups
- Children:
- b01b6d1
- Parents:
- ce2abc5
- git-author:
- Jessica B. Hamrick <jhamrick@…> (01/10/12 19:25:33)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (01/10/12 19:25:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/ipp/core/attributegroup.py
r793432f rffbe41d 33 33 """ 34 34 35 if tag is not None: 36 assert isinstance(tag, int), \ 37 "tag must be a character!" 35 if tag is not None and not isinstance(tag, int): 36 raise ValueError("tag must be a character") 38 37 39 38 self.tag = tag … … 87 86 88 87 for a in attributes: 89 assert isinstance(a, Attribute), \90 "attribute must be of type Attribute!"88 if not isinstance(a, Attribute): 89 raise ValueError("attribute must be of type Attribute") 91 90 92 91 for a in attributes:
Note: See TracChangeset
for help on using the changeset viewer.