Skip to content

Commit be8bd87

Browse files
committed
Improves comment and formatting of TLDRPage
1 parent fe04f43 commit be8bd87

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

wat/pagesources/TLDRPage.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@
33
import tldr
44

55

6-
def get_page(
7-
command: str,
8-
remote: Optional[str] = None,
9-
platforms: Optional[List[str]] = None,
10-
languages: Optional[List[str]] = None
11-
) -> Union[str, bool]:
6+
# Copied from tldr.get_page, adjusted that only the cache should be used
7+
def get_page(command: str, remote: Optional[str] = None, platforms: Optional[List[str]] = None, languages: Optional[List[str]] = None) -> Union[str, bool]:
128
if platforms is None:
139
platforms = tldr.get_platform_list()
1410
if languages is None:
1511
languages = tldr.get_language_list()
16-
# really only use cache
12+
# really only use the cache
1713
for platform in platforms:
1814
for language in languages:
1915
if platform is None:

0 commit comments

Comments
 (0)