Ignore:
Timestamp:
Mar 10, 2011, 9:54:17 PM (13 years ago)
Author:
Quentin Smith <quentin@…>
Branches:
no-cups
Children:
01e3017
Parents:
569c377
git-author:
Quentin Smith <quentin@…> (03/10/11 21:54:17)
git-committer:
Quentin Smith <quentin@…> (03/10/11 21:54:17)
Message:

Move IPP modules into the 'ipp' namespace

File:
1 moved

Legend:

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

    r569c377 r7a1c039  
    22
    33import sys, struct, logging
    4 from ippvalue import Value
     4from .value import Value
    55
    66# initialize logger
    7 logger = logging.getLogger("ippLogger")
     7logger = logging.getLogger(__name__)
    88
    99class Attribute(object):
     
    4040    """
    4141
    42     def __init__(self, name=None, values=[]):
     42    def __init__(self, name=None, values=None):
    4343        """
    4444        Initialize an Attribute.  This function can be called in three
     
    6262            assert isinstance(name, str), \
    6363                   "Attribute name must be a string!"
     64        if values is None:
     65            values = []
    6466        for value in values:
    6567            assert isinstance(value, Value), \
Note: See TracChangeset for help on using the changeset viewer.