URL:
<http://savannah.nongnu.org/patch/?6762>
Summary: Wrong exit() used for 2.3/2.4 Python
Project: duplicity
Submitted by: loafman
Submitted on: Mon 02 Mar 2009 07:23:57 AM CST
Category: None
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: loafman
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The builtin exit() function fails with:
# duplicity --version
duplicity 0.5.10
Traceback (most recent call last):
File "/usr/bin/duplicity", line 599, in ?
exit(e)
TypeError: 'str' object is not callable
in Python 2.3/2.4 and works correctly in 2.5/2.6. A simple change to
sys.exit(e) will fix the problem. Patch attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 02 Mar 2009 07:23:57 AM CST Name: sys-exit-in-main.patch Size:
635B By: loafman
<http://savannah.nongnu.org/patch/download.php?file_id=17560>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6762>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Duplicity-tracker mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/duplicity-tracker