This commit is contained in:
Kovid Goyal 2021-07-15 09:07:00 +05:30
parent 2263cd1355
commit b581408137
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -72,14 +72,9 @@ def process_group_map() -> DefaultDict[int, List[int]]:
return ans
@run_once
def checked_terminfo_dir() -> Optional[str]:
q = getattr(checked_terminfo_dir, 'ans', False)
if q is False:
ans = terminfo_dir if os.path.isdir(terminfo_dir) else None
setattr(checked_terminfo_dir, 'ans', ans)
else:
ans = q
return ans
return terminfo_dir if os.path.isdir(terminfo_dir) else None
def processes_in_group(grp: int) -> List[int]: