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

View File

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