Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/cvs/cvsclient.py
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | for c in password: | ||||
s.append("%c" % scramble_shifts[ord(c)]) | s.append("%c" % scramble_shifts[ord(c)]) | ||||
return "".join(s) | return "".join(s) | ||||
class CVSProtocolError(Exception): | class CVSProtocolError(Exception): | ||||
pass | pass | ||||
_re_kb_opt = re.compile(b"\/-kb\/") # noqa: W605 | _re_kb_opt = re.compile(rb"\/-kb\/") | ||||
class CVSClient: | class CVSClient: | ||||
def connect_pserver(self, hostname, port, auth): | def connect_pserver(self, hostname, port, auth): | ||||
if port is None: | if port is None: | ||||
port = CVS_PSERVER_PORT | port = CVS_PSERVER_PORT | ||||
if auth is None: | if auth is None: | ||||
raise NotFound( | raise NotFound( | ||||
▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines |