瀏覽代碼

Move InputURL handling to base Module.__init__ and extract URL string for convenience

tags/v1.0
JustAnotherArchivist 4 年之前
父節點
當前提交
9f6e5a9f48
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -0
      codearchiver/core.py
  2. +1
    -2
      codearchiver/modules/git.py

+ 1
- 0
codearchiver/core.py 查看文件

@@ -123,6 +123,7 @@ class Module:

def __init__(self, inputUrl):
self._inputUrl = inputUrl
self._url = inputUrl.url
self._httpClient = HttpClient()

@abc.abstractmethod


+ 1
- 2
codearchiver/modules/git.py 查看文件

@@ -15,8 +15,7 @@ class Git(codearchiver.core.Module):
return inputUrl.url.endswith('.git')

def __init__(self, inputUrl, extraBranches = {}):
self._inputUrl = inputUrl
self._url = inputUrl.url
super().__init__(inputUrl)
self._extraBranches = extraBranches

def process(self):


Loading…
取消
儲存