Skip to content

Commit

Permalink
Optimize imports [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Jul 31, 2023
1 parent 9d95a58 commit 4e95ee4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion recipes/aeon.recipe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import sys
from datetime import datetime, timezone

# custom include to share code between recipes
sys.path.append(os.environ["recipes_includes"])
Expand Down
1 change: 0 additions & 1 deletion recipes/atlantic-magazine.recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import os
import re
import sys
from datetime import datetime, timezone

# custom include to share code between recipes
sys.path.append(os.environ["recipes_includes"])
Expand Down
2 changes: 1 addition & 1 deletion recipes/bloomberg-businessweek.recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import time
from urllib.parse import urljoin, urlparse

from calibre import browser, iswindows, random_user_agent
from calibre import browser, iswindows
from calibre.ebooks.BeautifulSoup import BeautifulSoup
from calibre.utils.date import parse_date
from calibre.web.feeds.news import BasicNewsRecipe
Expand Down
2 changes: 1 addition & 1 deletion recipes/bloomberg-news.recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from datetime import datetime, timedelta, timezone
from urllib.parse import urlparse

from calibre import browser, iswindows, random_user_agent
from calibre import browser, iswindows
from calibre.ebooks.BeautifulSoup import BeautifulSoup
from calibre.utils.date import parse_date
from calibre.web.feeds.news import BasicNewsRecipe
Expand Down
4 changes: 2 additions & 2 deletions recipes/includes/nyt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import time
from urllib.parse import urlparse

from recipes_shared import BasicNewsrackRecipe, get_date_format

from calibre import browser
from calibre.ebooks.BeautifulSoup import BeautifulSoup

from recipes_shared import BasicNewsrackRecipe, get_date_format


class NYTRecipe(BasicNewsrackRecipe):
use_embedded_content = False
Expand Down

0 comments on commit 4e95ee4

Please sign in to comment.