Fix #4581 (WSJ not downloading fully) and fix invocation of embedded python interpreter via call to ipython not working because of command line arguments

This commit is contained in:
Kovid Goyal 2010-01-15 10:33:33 -07:00
parent b80cc18a30
commit ebe8d7bce8
2 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class WallStreetJournal(BasicNewsRecipe):
needs_subscription = True
language = 'en'
max_articles_per_feed = 25
max_articles_per_feed = 1000
timefmt = ' [%a, %b %d, %Y]'
no_stylesheets = True

View File

@ -451,6 +451,8 @@ if isosx:
traceback.print_exc()
def ipython(user_ns=None):
old_argv = sys.argv
sys.argv = ['ipython']
if user_ns is None:
user_ns = locals()
from calibre.utils.config import config_dir
@ -514,5 +516,6 @@ main()
from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed(user_ns=user_ns)
ipshell()
sys.argv = old_argv