Skip to content

Commit

Permalink
Apostrophe's are a 'n'ight'mare'.
Browse files Browse the repository at this point in the history
  • Loading branch information
fourminute authored Jan 27, 2019
1 parent d8060d8 commit 17da7d5
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions fluffy.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def reset_install():
txt_port.setEnabled(True)
tin_radio.setEnabled(True)
gold_radio.setEnabled(True)
l_status.setText("Awaiting Selection")
l_status.setText("Awaiting Selection.")
l_nsp.setText("")
l_nsp.setStyleSheet("")
l_switch.setText("")
Expand Down Expand Up @@ -854,8 +854,21 @@ try:
spl = str(d).split(',')
fil = list()
for a in spl:
st = a.split("'")
fil.append(st[1])
strt = 0
nd = 0
ie = 0
ae = 0
for c in a:
if c == "'" or c == '"':
strt = ie
break
ie+=1
for c2 in reversed(a):
if c2 == "'" or c2 == '"':
nd = ae
break
ae+=1
fil.append(a[strt+1:len(a)-nd-1])
fil.pop()
for f in fil:
i += 1
Expand Down

0 comments on commit 17da7d5

Please sign in to comment.