FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
html5lib-python/debug-info.py at master · Mic92/html5lib-python · GitHub
Mic92
/
html5lib-python
Public
forked from
html5lib/html5lib-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
html5lib-python
/
debug-info.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (26 loc) · 758 Bytes
Breadcrumbs
html5lib-python
/
debug-info.py
Copy path
File metadata and controls
37 lines (26 loc) · 758 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from
__future__
import
print_function
,
unicode_literals
import
platform
import
sys
info
=
{
"impl"
:
platform
.
python_implementation
(),
"version"
:
platform
.
python_version
(),
"revision"
:
platform
.
python_revision
(),
"maxunicode"
:
sys
.
maxunicode
,
"maxsize"
:
sys
.
maxsize
}
search_modules
=
[
"chardet"
,
"genshi"
,
"html5lib"
,
"lxml"
,
"six"
]
found_modules
=
[]
for
m
in
search_modules
:
try
:
__import__
(
m
)
except
ImportError
:
pass
else
:
found_modules
.
append
(
m
)
info
[
"modules"
]
=
", "
.
join
(
found_modules
)
print
(
"""html5lib debug info:
Python %(version)s (revision: %(revision)s)
Implementation: %(impl)s
sys.maxunicode: %(maxunicode)X
sys.maxsize: %(maxsize)X
Installed modules: %(modules)s"""
%
info
)
Back
|
FazBrowse Home
|
New Git URL