- Update patch for import in argparse

This commit is contained in:
Toshio くらとみ 2010-06-21 18:39:44 +00:00
parent dfd5875081
commit 8c7d7538cc
2 changed files with 6 additions and 2 deletions

View File

@ -2223,7 +2223,7 @@ Index: ipython-0.10/IPython/external/argparse/__init__.py
===================================================================
--- /dev/null
+++ ipython-0.10/IPython/external/argparse/__init__.py
@@ -0,0 +1,10 @@
@@ -0,0 +1,11 @@
+try:
+ import argparse
+ # Workaround an argparse bug
@ -2232,6 +2232,7 @@ Index: ipython-0.10/IPython/external/argparse/__init__.py
+ argparse.__all__ = list(itertools.chain( [i for i in argparse.__all__
+ if i != 'RawTextHelpFormatterArgumentDefaultsHelpFormatter'],
+ ['RawTextHelpFormatter', 'ArgumentDefaultsHelpFormatter']))
+ from argparse import *
+except ImportError:
+ from _argparse import *
Index: ipython-0.10/IPython/external/argparse.py

View File

@ -4,7 +4,7 @@
Name: ipython
Version: 0.10
Release: 3%{?dist}
Release: 4%{?dist}
Summary: An enhanced interactive Python shell
Group: Development/Libraries
@ -197,6 +197,9 @@ rm -rf %{buildroot}
%changelog
* Mon Jun 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-4
- Update patch for import in argparse
* Fri Jun 11 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-3
- fix license tag (#603178)
- add requires on wxpython to gui subpackage (#515570)