diff --git a/plug-ins/python/histogram-export.py b/plug-ins/python/histogram-export.py index 137f73c53a..928775d7aa 100644 --- a/plug-ins/python/histogram-export.py +++ b/plug-ins/python/histogram-export.py @@ -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()