Skip to content

Commit 05abf3f

Browse files
committed
PEP8
1 parent c45391d commit 05abf3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/dft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def as_png(self, index=None, scale_to_slice=True):
139139
data = data * 255 / (max - min)
140140
data = data.astype(numpy.uint8)
141141
im = PIL.Image.frombytes('L', (self.rows, self.columns),
142-
data.tobytes())
142+
data.tostring())
143143
s = BytesIO()
144144
im.save(s, 'PNG')
145145
return s.getvalue()

0 commit comments

Comments
 (0)