Skip to content

Commit 425aac9

Browse files
committed
Fix pydocs
1 parent 59bf6ce commit 425aac9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

reportportal_client/core/rp_requests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,20 @@ def make(self) -> Optional[RPResponse]:
145145

146146

147147
class ErrorPrintingHttpRequest(HttpRequest):
148-
"""This is specific request object which catches any request error and prints it to the "std.err".
148+
"""This is specific request object which catches any request error and prints it to the "sys.stderr".
149149
150150
The object is supposed to be used in logging methods only to prevent infinite recursion of logging, when logging
151151
framework configured to log everything to ReportPortal. In this case if a request to ReportPortal fails, the
152152
failure will be logged to ReportPortal once again and, for example, in case of endpoint configuration error, it
153153
will also fail and will be logged again. So, the recursion will never end.
154154
155-
This class is used to prevent this situation. It catches any request error and prints it to the "std.err".
155+
This class is used to prevent this situation. It catches any request error and prints it to the "sys.stderr".
156156
"""
157157

158158
def make(self) -> Optional[RPResponse]:
159159
"""Make HTTP request to the ReportPortal API.
160160
161-
The method catches any request error and prints it to the "std.err".
161+
The method catches any request error and prints it to the "sys.stderr".
162162
163163
:return: wrapped HTTP response or None in case of failure
164164
"""
@@ -223,20 +223,20 @@ async def make(self) -> Optional[AsyncRPResponse]:
223223

224224

225225
class ErrorPrintingAsyncHttpRequest(AsyncHttpRequest):
226-
"""This is specific request object which catches any request error and prints it to the "std.err".
226+
"""This is specific request object which catches any request error and prints it to the "sys.stderr".
227227
228228
The object is supposed to be used in logging methods only to prevent infinite recursion of logging, when logging
229229
framework configured to log everything to ReportPortal. In this case if a request to ReportPortal fails, the
230230
failure will be logged to ReportPortal once again and, for example, in case of endpoint configuration error, it
231231
will also fail and will be logged again. So, the recursion will never end.
232232
233-
This class is used to prevent this situation. It catches any request error and prints it to the "std.err".
233+
This class is used to prevent this situation. It catches any request error and prints it to the "sys.stderr".
234234
"""
235235

236236
async def make(self) -> Optional[AsyncRPResponse]:
237237
"""Asynchronously make HTTP request to the ReportPortal API.
238238
239-
The method catches any request error and prints it to the "std.err".
239+
The method catches any request error and prints it to the "sys.stderr".
240240
241241
:return: wrapped HTTP response or None in case of failure
242242
"""

0 commit comments

Comments
 (0)