Skip to content

Commit 87c3fce

Browse files
fix(python): Fix whitespaces
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
1 parent 84268da commit 87c3fce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python/villas/node/node.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,18 @@ def load_config(self, i):
128128
def request(self, action, method="GET", **args):
129129
timeout = args.get("timeout", 1)
130130
json_data = args.get("json")
131-
131+
132132
url = f"{self.api_url}/api/{self.api_version}/{action}"
133-
133+
134134
# Prepare the request
135135
req = urllib.request.Request(url, method=method)
136-
136+
137137
# Add JSON data if provided
138138
if json_data:
139139
req.add_header("Content-Type", "application/json")
140140
data = json.dumps(json_data).encode("utf-8")
141141
req.data = data
142-
142+
143143
try:
144144
with urllib.request.urlopen(req, timeout=timeout) as response:
145145
return json.loads(response.read().decode("utf-8"))

0 commit comments

Comments
 (0)