Changeset 116 for trunk

Show
Ignore:
Timestamp:
11/10/08 12:50:57 (2 months ago)
Author:
amcgregor
Message:

Corrected variable reference before assignment error.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/turbomail/api.py

    r111 r116  
    6363        value was not found, the default value (default None) is returned. If  
    6464        tm2_key was specified, """ 
     65        value = None 
     66         
    6567        if key in interface.config: 
    6668            value = interface.config.get(key) 
     69         
    6770        else: 
    6871            if tm2_key != None and not tm2_key.startswith('mail.'): 
     
    7578                warn_text = basemsg % (tm2_key, key) 
    7679                warnings.warn(warn_text, category=DeprecationWarning) 
    77         if value == None: 
    78             value = default 
     80         
     81        if value == None: value = default 
     82         
    7983        return value 
    8084