8000 Updated package links for Python 2.7 and Python 3 support · tanqhnguyen/python-readability@987570b · GitHub
[go: up one dir, main page]

Skip to content

Commit 987570b

Browse files
committed
Updated package links for Python 2.7 and Python 3 support
1 parent dc648e7 commit 987570b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

readability/htmls.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
from cleaners import normalize_spaces, clean_attributes
2-
from encoding import get_encoding
31
from lxml.html import tostring
42
import logging
53
import lxml.html
64
import re, sys
75

6+
from .cleaners import normalize_spaces, clean_attributes
7+
from .encoding import get_encoding
8+
89
utf8_parser = lxml.html.HTMLParser(encoding='utf-8')
910

1011
def build_doc(page):

readability/readability.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
from lxml.html import document_fromstring
1010
from lxml.html import fragment_fromstring
1111

12-
from cleaners import clean_attributes
13-
from cleaners import html_cleaner
14-
from htmls import build_doc
15-
from htmls import get_body
16-
from htmls import get_title
17-
from htmls import shorten_title
12+
from .cleaners import clean_attributes
13+
from .cleaners import html_cleaner
14+
from .htmls import build_doc
15+
from .htmls import get_body
16+
from .htmls import get_title
17+
from .htmls import shorten_title
1818

1919

2020
logging.basicConfig(level=logging.INFO)

0 commit comments

Comments
 (0)
0