Permalink
Browse files

fix argparse version check

  • Loading branch information...
1 parent 53a38cb commit 1b8fc4fc9e19962de87d5a3548a66997645e4671 @juliantaylor committed Apr 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 IPython/external/argparse/__init__.py
@@ -1,7 +1,8 @@
+from IPython.utils.version import check_version
try:
import argparse
# don't use system argparse if older than 1.1:
- if argparse.__version__ < '1.1':
+ if not check_version(argparse.__version__, '1.1'):
raise ImportError
else:
from argparse import *

0 comments on commit 1b8fc4f

Please sign in to comment.