code: def split_package_name(p):
      
      s = p.split(six.u('=='))
      if len(s) == 1:
          return (to_text(s[0]), None)
      else:
          return (to_text(s[0]), to_text(s[1]))
docs: Splits the given package name and returns a tuple (name, ver).