Update Git systems to newer API

Julien LepillerFri Apr 09 17:13:34+0200 2021

ebb2528

Update Git systems to newer API

offlate/systems/git.py

3939
            item.unlink()
4040
    dir.rmdir()
4141
42-
class Progress(pygit2.remote.RemoteCallbacks):
42+
class Progress(pygit2.RemoteCallbacks):
4343
    def __init__(self, callback):
4444
        super().__init__()
4545
        self.callback = callback

offlate/systems/github.py

2727
    def __init__(self, conf, name, lang, data = {}):
2828
        GitProject.__init__(self, conf, name, lang, data)
2929
30-
    def updateURI(self):
30+
    def _updateURI(self):
3131
        repo = self.data['repo']
3232
        if repo.startswith('https://github.com/'):
3333
            self.uri = repo

offlate/systems/gitlab.py

2626
    def __init__(self, conf, name, lang, data = {}):
2727
        GitProject.__init__(self, conf, name, lang, data)
2828
29-
    def updateURI(self):
29+
    def _updateURI(self):
3030
        self.uri = self.data['repo']
3131
        self.branch = self.data['branch']
3232