Skip to content

Commit

Permalink
pep 8
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Aug 9, 2023
1 parent 546a1b8 commit 89cdb2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions refinery/units/strings/trim.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def __init__(
def process(self, data: bytearray):
dirty = True
synch = True
strip = None
mview = memoryview(data)
junks = self.args.junk

Expand All @@ -45,11 +44,13 @@ def strip(b):
if b[-1] in strips:
return True, b.rstrip(strips)
return False, b
else:
strip = None

while dirty and data:
dirty = False

if strip:
if strips and strip:
dirty, data = strip(data)
if dirty:
mview = memoryview(data)
Expand Down

0 comments on commit 89cdb2e

Please sign in to comment.