original_docstring: 
      Note: GitLab API has Wiki included, but at this time, GitHub API does not cover Wiki
      
docstring: GitLab API has Wiki included, but at this time, GitHub API does not cover Wiki
docstring_tokens: GitLab API has Wiki included but at this time GitHub API does not cover Wiki
code: def dupewiki(prepo: Path, oldurl: str, newurl: str):
      """
      Note: GitLab API has Wiki included, but at this time, GitHub API does not cover Wiki
      """
      pwd = prepo / (oldurl.split("/")[-1]).split(".git")[0]
  
      subprocess.check_call(
          [git, "remote", "set-url", "origin", newurl], cwd=pwd, stdout=subprocess.DEVNULL
      )
  
      browseurl = newurl
      browseurl = browseurl.replace("ssh", "https").replace(".wiki.git", "/wiki")
      webbrowser.open_new_tab(browseurl)
      sleep(10.0)  # TODO: use suprocess.run() instead of webbrowser
  
      subprocess.check_call([git, "push", "-f"], cwd=pwd)
code_tokens: def dupewiki ( prepo : Path , oldurl : str , newurl : str ) : pwd = prepo / ( oldurl . split ( "/" ) [ - 1 ] ) . split ( ".git" ) [ 0 ] subprocess . check_call ( [ git , "remote" , "set-url" , "origin" , newurl ] , cwd = pwd , stdout = subprocess . DEVNULL ) browseurl = newurl browseurl = browseurl . replace ( "ssh" , "https" ) . replace ( ".wiki.git" , "/wiki" ) webbrowser . open_new_tab ( browseurl ) sleep ( 10.0 ) subprocess . check_call ( [ git , "push" , "-f" ] , cwd = pwd )
short_docstring: Note: GitLab API has Wiki included, but at this time, GitHub API does not cover Wiki
short_docstring_tokens: Note : GitLab API has Wiki included but at this time GitHub API does not cover Wiki
comment: """
      Note: GitLab API has Wiki included, but at this time, GitHub API does not cover Wiki
      """$SEP$# TODO: use suprocess.run() instead of webbrowser