Skip to content

Commit 66df061

Browse files
python linter: clean events/src/eventsapiconf.py.in
This series aim to reduce the python linter build logs. This commit silences most of the python linter complaints without any functional changes. The changes include mostly formatting and missing obvious docstrings. We left out dependency and exception handling complaints on purpose to be addressed separately. Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]>
1 parent 45a49e0 commit 66df061

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

events/src/eventsapiconf.py.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,23 @@
1212
import subprocess
1313
glusterd_workdir = None
1414

15+
1516
# Methods
1617
def get_glusterd_workdir():
1718
global glusterd_workdir
1819
if glusterd_workdir is not None:
1920
return glusterd_workdir
2021
proc = subprocess.Popen(["gluster", "system::", "getwd"],
2122
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
22-
universal_newlines = True)
23+
universal_newlines=True)
2324
out, err = proc.communicate()
2425
if proc.returncode == 0:
2526
glusterd_workdir = out.strip()
2627
else:
2728
glusterd_workdir = "@GLUSTERD_WORKDIR@"
2829
return glusterd_workdir
2930

31+
3032
SERVER_ADDRESS = "0.0.0.0"
3133
SERVER_ADDRESSv4 = "0.0.0.0"
3234
SERVER_ADDRESSv6 = "::1"

0 commit comments

Comments
 (0)