Package: comix
Version: 3.6.2-2

When I try to exit comix, it will not terminate, printing

Traceback (most recent call last):
 File "/usr/bin/comix", line 308, in close_application
   cPickle.dump(self.version, config, protocol=cPickle.HIGHEST_PROTOCOL)
TypeError: dump() takes no keyword arguments

and will stop functioning correctly (like not showing the "open" dialog).
Further attempts to close it using the menu will produce the following output:

Traceback (most recent call last):
 File "/usr/bin/comix", line 282, in close_application
   del self.prefs['double page']
KeyError: 'double page'

I am running Python 2.3.5-2, as comix only requires Python >= 2.3.

I checked the documentation of Python [2.3 and 2.5. I'm assuming it is
the same with 2.4], and "protocol" is the third argument in dump().
Therefor, there is no need for the keyword argument. I removed it, and
it works fine now.

Here is the diff:

308,309c308,309
<         cPickle.dump(self.version, config, protocol=cPickle.HIGHEST_PROTOCOL)
<         cPickle.dump(self.prefs, config, protocol=cPickle.HIGHEST_PROTOCOL)
---
        cPickle.dump(self.version, config, cPickle.HIGHEST_PROTOCOL)
        cPickle.dump(self.prefs, config, cPickle.HIGHEST_PROTOCOL)
322c322
<             protocol=cPickle.HIGHEST_PROTOCOL)
---
            cPickle.HIGHEST_PROTOCOL)
324c324
<             protocol=cPickle.HIGHEST_PROTOCOL)
---
            cPickle.HIGHEST_PROTOCOL)
336c336
<             protocol=cPickle.HIGHEST_PROTOCOL)
---
            cPickle.HIGHEST_PROTOCOL)


--
Gustavo Laboreiro


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to