Skip to content

Commit 934a61e

Browse files
authored
[Fix] removed unnecessary lines that raised the flake8 error code F824 (#262)
Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch>
1 parent 3c36ab0 commit 934a61e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pyerrors/input/json.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ def _ol_from_dict(ind, reps='DICTOBS'):
571571
counter = 0
572572

573573
def dict_replace_obs(d):
574-
nonlocal ol
575574
nonlocal counter
576575
x = {}
577576
for k, v in d.items():
@@ -592,7 +591,6 @@ def dict_replace_obs(d):
592591
return x
593592

594593
def list_replace_obs(li):
595-
nonlocal ol
596594
nonlocal counter
597595
x = []
598596
for e in li:
@@ -613,7 +611,6 @@ def list_replace_obs(li):
613611
return x
614612

615613
def obslist_replace_obs(li):
616-
nonlocal ol
617614
nonlocal counter
618615
il = []
619616
for e in li:
@@ -694,7 +691,6 @@ def _od_from_list_and_dict(ol, ind, reps='DICTOBS'):
694691

695692
def dict_replace_string(d):
696693
nonlocal counter
697-
nonlocal ol
698694
x = {}
699695
for k, v in d.items():
700696
if isinstance(v, dict):
@@ -710,7 +706,6 @@ def dict_replace_string(d):
710706

711707
def list_replace_string(li):
712708
nonlocal counter
713-
nonlocal ol
714709
x = []
715710
for e in li:
716711
if isinstance(e, list):

0 commit comments

Comments
 (0)