Changeset 2939

Show
Ignore:
Timestamp:
05/23/08 16:24:37 (5 years ago)
Author:
nopper
Message:

applied #3 as post condition.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/umitCore/NmapCommand.py

    r2918 r2939  
    288288 
    289289    def add_option(self, option_name, args=[], level=False): 
    290         if option_name == "None" and not args and not level: 
     290        if (not option_name) or \ 
     291            (option_name == "None" and not args and not level): 
    291292            # this certainly shouldn't be added 
    292293            return