(cls, target)
Determines whether the target provided is an IP Address or
        an IP Address in dash notation. Then creates a list
        that can be utilized as targets by the program.
        Returns a list of string IP Addresses that can be used as targets.

        Argument(s):
        target -- string target provided as the first argument to the program.

        Return value(s):
        Iterator of string(s) representing IP Addresses.

        Restriction(s):
        This Method is tagged as a Class Method
Determines whether the target provided is an IP Address or
        an IP Address in dash notation. Then creates a list
        that can be utilized as targets by the program.
        Returns a list of string IP Addresses that can be used as targets.
Determines whether the target provided is an IP Address or an IP Address in dash notation . Then creates a list that can be utilized as targets by the program . Returns a list of string IP Addresses that can be used as targets .
def getTarget(cls, target):
        """
        Determines whether the target provided is an IP Address or
        an IP Address in dash notation. Then creates a list
        that can be utilized as targets by the program.
        Returns a list of string IP Addresses that can be used as targets.

        Argument(s):
        target -- string target provided as the first argument to the program.

        Return value(s):
        Iterator of string(s) representing IP Addresses.

        Restriction(s):
        This Method is tagged as a Class Method
        """
        # IP Address range using prefix syntax
        ipRangeDash = re.compile('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}-\d{1,3}')
        ipRgeDashFind = re.findall(ipRangeDash, target)
        # IP Address range seperated with a dash
        if ipRgeDashFind is not None and len(ipRgeDashFind) > 0:
            iplist = target[:target.index("-")].split(".")
            iplast = target[target.index("-") + 1:]
            if int(iplist[3]) < int(iplast):
                for lastoctet in xrange(int(iplist[3]), int(iplast) + 1):
                    yield target[:target.rindex(".") + 1] + str(lastoctet)
            else:
                yield target[:target.rindex(".") + 1] + str(iplist[3])
        # it's just an IP address at this point
        else:
            yield target
def getTarget ( cls , target ) : # IP Address range using prefix syntax ipRangeDash = re . compile ( '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}-\d{1,3}' ) ipRgeDashFind = re . findall ( ipRangeDash , target ) # IP Address range seperated with a dash if ipRgeDashFind is not None and len ( ipRgeDashFind ) > 0 : iplist = target [ : target . index ( "-" ) ] . split ( "." ) iplast = target [ target . index ( "-" ) + 1 : ] if int ( iplist [ 3 ] ) < int ( iplast ) : for lastoctet in xrange ( int ( iplist [ 3 ] ) , int ( iplast ) + 1 ) : yield target [ : target . rindex ( "." ) + 1 ] + str ( lastoctet ) else : yield target [ : target . rindex ( "." ) + 1 ] + str ( iplist [ 3 ] ) # it's just an IP address at this point else : yield target