Changeset 341

Show
Ignore:
Timestamp:
09/01/06 12:35:10 (2 years ago)
Author:
mj
Message:

Collapse nested if statements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • z3wingdbg/trunk/interfaces.py

    r340 r341  
    194194    def checkAttachPassword(obj): 
    195195        """If source is not PWD_PROFILE, the source needs to be specified""" 
    196         if obj.attachPasswordSource == PWD_PATH: 
    197             if not obj.attachPasswordPath: 
    198                 raise interface.Invalid( 
    199                     _(u'Please specify the path of the password source')) 
    200         elif obj.attachPasswordSource == PWD_MANUAL: 
    201             if not obj.attachPassword: 
    202                 raise interface.Invalid( 
    203                     _(u'Please specify an attach password')) 
     196        if obj.attachPasswordSource == PWD_PATH and not obj.attachPasswordPath: 
     197            raise interface.Invalid( 
     198                _(u'Please specify the path of the password source')) 
     199        elif obj.attachPasswordSource == PWD_MANUAL and not obj.attachPassword: 
     200            raise interface.Invalid( 
     201                _(u'Please specify an attach password')) 
    204202     
    205203class IDebugServerConfiguration(interface.Interface):