'Get the major/minor version of the urllib2 lib.
@return: The urllib2 version.
@rtype: float'

def u2ver(self):

    try:
        part = u2.__version__.split('.', 1)
        n = float('.'.join(part))
        return n
    except Exception as e:
        log.exception(e)
        return 0
