Skip to content

Commit df55074

Browse files
committed
Fix flake8 warnings in OMParser/__init__.py
1 parent 4ab365f commit df55074

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

OMPython/OMParser/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ def delete_elements(strings):
207207

208208

209209
def make_subset_sets(strings, name):
210-
index = 0
211-
anchor = 0
212210
main_set_name = "SET1"
213211
subset_name = "Subset1"
214212
set_name = "Set1"
@@ -285,8 +283,6 @@ def make_subset_sets(strings, name):
285283
def make_sets(strings, name):
286284
if strings == "{}":
287285
return
288-
index = 0
289-
anchor = 0
290286
main_set_name = "SET1"
291287
set_name = "Set1"
292288

@@ -415,7 +411,6 @@ def get_inner_sets(strings, for_this, name):
415411

416412

417413
def make_elements(strings):
418-
original_string = strings
419414
index = 0
420415
main_set_name = "SET1"
421416

@@ -563,7 +558,6 @@ def skip_all_inner_sets(position):
563558
max_count = main_count
564559
last_set = 0
565560
last_subset = 0
566-
last_brace = 0
567561
pos = position
568562

569563
while pos < len(string):
@@ -616,7 +610,6 @@ def skip_all_inner_sets(position):
616610
break
617611
elif ch == "(":
618612
brace_count += 1
619-
brace_start = position
620613
position += 1
621614
while position < end_of_main_set:
622615
s = string[position]
@@ -625,7 +618,6 @@ def skip_all_inner_sets(position):
625618
elif s == ")":
626619
brace_count -= 1
627620
if brace_count == 0:
628-
last_brace = position
629621
break
630622
elif s == "=" and string[position + 1] == "{":
631623
indx = position + 2
@@ -672,7 +664,6 @@ def skip_all_inner_sets(position):
672664
break
673665
elif ch == "(":
674666
brace_count += 1
675-
brace_start = position
676667
position += 1
677668
while position < end_of_main_set:
678669
s = string[position]
@@ -681,13 +672,11 @@ def skip_all_inner_sets(position):
681672
elif s == ")":
682673
brace_count -= 1
683674
if brace_count == 0:
684-
last_brace = position
685675
break
686676
position += 1
687677
position += 1
688678
elif char == "(":
689679
brace_count += 1
690-
brace_start = position
691680
position += 1
692681
while position < end_of_main_set:
693682
s = string[position]
@@ -696,7 +685,6 @@ def skip_all_inner_sets(position):
696685
elif s == ")":
697686
brace_count -= 1
698687
if brace_count == 0:
699-
last_brace = position
700688
break
701689
position += 1
702690

0 commit comments

Comments
 (0)