Changeset 1065

Show
Ignore:
Timestamp:
09/13/07 23:51:17 (15 months ago)
Author:
wichert
Message:

We do not want the same default dict instance in all Server instances.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pyrad/server.py

    r1064 r1065  
    6262        MaxPacketSize   = 8192 
    6363 
    64         def __init__(self, addresses=[], authport=1812, acctport=1813, hosts={}, dict=None): 
     64        def __init__(self, addresses=[], authport=1812, acctport=1813, hosts=None, dict=None): 
    6565                """Constructor. 
    6666 
     
    7777                """ 
    7878                host.Host.__init__(self, authport, acctport, dict) 
    79                 self.hosts=hosts 
     79                if hosts is None: 
     80                    self.hosts={} 
     81                else: 
     82                    self.hosts=hosts 
    8083 
    8184                self.authfds=[]