File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
reportportal_client/services Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
- """This package contains handles connections with external services ."""
1
+ """This package contains different service interfaces ."""
2
2
3
3
# Copyright (c) 2023 EPAM Systems
4
4
# Licensed under the Apache License, Version 2.0 (the "License");
Original file line number Diff line number Diff line change
1
+ """This module sends statistics events to a statistics service."""
2
+
1
3
# Copyright (c) 2023 EPAM Systems
2
4
# Licensed under the Apache License, Version 2.0 (the "License");
3
5
# you may not use this file except in compliance with the License.
@@ -43,15 +45,19 @@ def _get_platform_info():
43
45
return 'Python ' + python_version ()
44
46
45
47
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
49
55
"""
50
56
result = {}
51
57
with open (filepath , "rt" ) as f :
52
58
for line in f :
53
59
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 ):
55
61
sep_idx = s_line .index (sep )
56
62
key = s_line [0 :sep_idx ]
57
63
value = s_line [sep_idx + 1 :]
You can’t perform that action at this time.
0 commit comments