[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Duplicity-tracker] [patch #6762] Wrong exit() used for 2.3/2.4 Python
From: |
Kenneth Loafman |
Subject: |
[Duplicity-tracker] [patch #6762] Wrong exit() used for 2.3/2.4 Python |
Date: |
Mon, 02 Mar 2009 13:23:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6 |
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] [patch #6762] Wrong exit() used for 2.3/2.4 Python,
Kenneth Loafman <=