def get_port_range(ports):
 ports = ports.encode('utf8')
 p = ports.replace('\xe2\x80\x93', '-').split('-')
 if (len(p) == 2):
  return [int(p[0]), int(p[1])]
 else:
  return [int(p[0]), int(p[0])]

def get_port_range ( ports ) : ports = ports . encode ( 'utf8' ) p = ports . replace ( '\xe2\x80\x93' , '-' ) . split ( '-' ) if ( len ( p ) == 2 ) : return [ int ( p [ 0 ] ) , int ( p [ 1 ] ) ] else : return [ int ( p [ 0 ] ) , int ( p [ 0 ] ) ]
returns a list with start and end of the range .