From 39cc992e9bf98b75df36a8768065acd4c2ad4c59 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Nov 2020 12:17:38 -0500 Subject: [PATCH] Lint: E306 expected 1 blank line before a nested definition, found 0 --- api-daemon/pvcapid/flaskapi.py | 1 + node-daemon/pvcnoded/zkhandler.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index 75e30fca..269102c1 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -149,6 +149,7 @@ class RequestParser(object): def __call__(self, function): if not callable(function): return + @wraps(function) def wrapped_function(*args, **kwargs): parser = reqparse.RequestParser() diff --git a/node-daemon/pvcnoded/zkhandler.py b/node-daemon/pvcnoded/zkhandler.py index b7ee74f0..93ba9aa5 100644 --- a/node-daemon/pvcnoded/zkhandler.py +++ b/node-daemon/pvcnoded/zkhandler.py @@ -101,8 +101,9 @@ def renamekey(zk_conn, kv): old_data = zk_conn.get(old_name)[0] - # Find the children of old_name recursively child_keys = list() + + # Find the children of old_name recursively def get_children(key): children = zk_conn.get_children(key) if not children: