Skip to content

Commit 24dd728

Browse files
committed
bugfix: was inadvertently using global variable
1 parent 5cd233e commit 24dd728

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wtf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ def run(self):
255255
buffer.append(outline)
256256
else:
257257
if buffer:
258-
outf.write(''.join(buffer))
258+
self.outf.write(''.join(buffer))
259259
buffer = []
260-
outf.write(outline)
260+
self.outf.write(outline)
261261

262262
# handle blank lines at end
263263
if buffer:
@@ -268,7 +268,7 @@ def run(self):
268268
# ... which we don't want
269269
fixed.eof_blanks += len(buffer)
270270
buffer = []
271-
outf.write(''.join(buffer))
271+
self.outf.write(''.join(buffer))
272272

273273
# Quick sanity check
274274
for k in actions:

0 commit comments

Comments
 (0)