Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning in htmls.py #22

Closed
xnj opened this issue Jun 21, 2012 · 0 comments · Fixed by #24
Closed

Warning in htmls.py #22

xnj opened this issue Jun 21, 2012 · 0 comments · Fixed by #24

Comments

@xnj
Copy link

xnj commented Jun 21, 2012

Warning (from warnings module):
File "c:\Python27\egg\Lib\site-packages\readability\htmls.py", line 60
if not title or not title.text:
FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.

update

#if not title or not title.text:

replace to:

if title is not None or title.text is not None:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants