Procházet zdrojové kódy

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

tags/v1.0
JustAnotherArchivist před 4 roky
rodič
revize
9f6e5a9f48
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +1
    -0
      codearchiver/core.py
  2. +1
    -2
      codearchiver/modules/git.py

+ 1
- 0
codearchiver/core.py Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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):


Načítá se…
Zrušit
Uložit