This commit is contained in:
ed 2026-08-16 18:23:12 +00:00
parent eeb399e3c9
commit 2be85b67a9
2 changed files with 3 additions and 1 deletions

View file

@ -1658,6 +1658,8 @@ class HttpCli(object):
"expires": time.time() + self.args.wopi_ttl, "expires": time.time() + self.args.wopi_ttl,
} }
assert atoken and session # type: ignore # !rm
xml = url = "?" xml = url = "?"
try: try:
from .dxml import parse_xml from .dxml import parse_xml

View file

@ -352,7 +352,7 @@ RE_MEMAVAIL = re.compile("^MemAvailable:.* kB")
if PY2: if PY2:
def umktrans(s1, s2): def umktrans(s1: str, s2: str):
return {ord(c1): ord(c2) for c1, c2 in zip(s1, s2)} return {ord(c1): ord(c2) for c1, c2 in zip(s1, s2)}
else: else: