Skip to content

Commit 44af39d

Browse files
committed
Flake8 fixes
1 parent 3923abf commit 44af39d

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

reportportal_client/services/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This package contains handles connections with external services."""
1+
"""This package contains different service interfaces."""
22

33
# Copyright (c) 2023 EPAM Systems
44
# Licensed under the Apache License, Version 2.0 (the "License");

reportportal_client/services/statistics.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This module sends statistics events to a statistics service."""
2+
13
# Copyright (c) 2023 EPAM Systems
24
# Licensed under the Apache License, Version 2.0 (the "License");
35
# you may not use this file except in compliance with the License.
@@ -43,15 +45,19 @@ def _get_platform_info():
4345
return 'Python ' + python_version()
4446

4547

46-
def _load_properties(filepath, sep='=', comment_char='#'):
47-
"""
48-
Read the file passed as parameter as a properties file.
48+
def _load_properties(filepath, sep='=', comment_str='#'):
49+
"""Read the file passed as parameter as a properties file.
50+
51+
:param filepath: path to property file
52+
:param sep: separator string between key and value
53+
:param comment_str: a string which designate comment line
54+
:return: property file as Dict
4955
"""
5056
result = {}
5157
with open(filepath, "rt") as f:
5258
for line in f:
5359
s_line = line.strip()
54-
if s_line and not s_line.startswith(comment_char):
60+
if s_line and not s_line.startswith(comment_str):
5561
sep_idx = s_line.index(sep)
5662
key = s_line[0:sep_idx]
5763
value = s_line[sep_idx + 1:]

0 commit comments

Comments
 (0)