Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixes 115 FragmentWrapper.isstring handles unicode#116

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
aleray wants to merge1 commit intohtml5lib:masterfromaleray:115-fixing-isstring
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletionsAUTHORS.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,3 +32,4 @@ Patches and suggestions
- Juan Carlos Garcia Segovia
- Mike West
- Marc DM
- Alexandre Leray
4 changes: 2 additions & 2 deletionshtml5lib/treewalkers/lxmletree.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
from six import text_type
from six import text_type, string_types, binary_type

from lxml import etree
from ..treebuilders.etree import tag_regexp
Expand DownExpand Up@@ -87,7 +87,7 @@ def __init__(self, fragment_root, obj):
self.tail = ensure_str(self.obj.tail)
else:
self.tail = None
self.isstring = isinstance(obj,str) or isinstance(obj,bytes)
self.isstring = isinstance(obj,string_types) or isinstance(obj,binary_type)
# Support for bytes here is Py2
if self.isstring:
self.obj = ensure_str(self.obj)
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp