code: def _extractPathFromUrl(url):
          
          if url.netloc != '' and url.netloc != 'localhost':
              raise RuntimeError("The URL '%s' is invalid" % url.geturl())
          return url.netloc + url.path
docs: :return: local file path of file pointed at by the given URL