Export histogram: fix blank lines on Windows
For the Python 3 case in issue #6096 following the instructions of zjw and the Python 3 manual.
This commit is contained in:
parent
87eadbf5d1
commit
7f9e819b50
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ def histogram_export(procedure, img, layers, gio_file,
|
|||
channels_gimp += [Gimp.HistogramChannel.ALPHA]
|
||||
|
||||
try:
|
||||
with open(gio_file.get_path(), "wt") as hfile:
|
||||
with open(gio_file.get_path(), "wt", newline="") as hfile:
|
||||
writer = csv.writer(hfile)
|
||||
histo_proc = Gimp.get_pdb().lookup_procedure('gimp-drawable-histogram')
|
||||
histo_config = histo_proc.create_config()
|
||||
|
|
|
|||
Loading…
Reference in a new issue