Skip to content

Commit

Permalink
Improves comment and formatting of TLDRPage
Browse files Browse the repository at this point in the history
  • Loading branch information
codeZeilen committed Jan 23, 2025
1 parent fe04f43 commit be8bd87
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions wat/pagesources/TLDRPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
import tldr


def get_page(
command: str,
remote: Optional[str] = None,
platforms: Optional[List[str]] = None,
languages: Optional[List[str]] = None
) -> Union[str, bool]:
# Copied from tldr.get_page, adjusted that only the cache should be used
def get_page(command: str, remote: Optional[str] = None, platforms: Optional[List[str]] = None, languages: Optional[List[str]] = None) -> Union[str, bool]:
if platforms is None:
platforms = tldr.get_platform_list()
if languages is None:
languages = tldr.get_language_list()
# really only use cache
# really only use the cache
for platform in platforms:
for language in languages:
if platform is None:
Expand Down

0 comments on commit be8bd87

Please sign in to comment.