Skip to content

Commit

Permalink
refactor: Rename private functions to use single underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
chyroc committed Sep 26, 2024
1 parent 8df349b commit db0a818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cozepy/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def request(
if stream:
return r.iter_lines()

code, msg, data = self.__parse_requests_code_msg(r, data_field)
code, msg, data = self._parse_requests_code_msg(r, data_field)

if code is not None and code > 0:
# TODO: Exception 自定义类型
Expand All @@ -89,7 +89,7 @@ async def arequest(self, method: str, path: str, **kwargs) -> dict:
"""
pass

def __parse_requests_code_msg(
def _parse_requests_code_msg(
self, r: Response, data_field: str = "data"
) -> Tuple[Optional[int], str, Optional[T]]:
try:
Expand Down

0 comments on commit db0a818

Please sign in to comment.