FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pre-commit/pre_commit/five.py at wip_progress_dots · pre-commit/pre-commit · GitHub
pre-commit
pre-commit
Repository navigation
Code
Issues
17
(17)
Pull requests
8
(8)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
pre-commit
/
pre_commit
/
five.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (8 loc) · 295 Bytes
Breadcrumbs
pre-commit
/
pre_commit
/
five.py
Copy path
File metadata and controls
15 lines (8 loc) · 295 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
from
__future__
import
absolute_import
from
__future__
import
unicode_literals
import
six
def
to_text
(
s
):
return
s
if
isinstance
(
s
,
six
.
text_type
)
else
s
.
decode
(
'UTF-8'
)
def
to_bytes
(
s
):
return
s
if
isinstance
(
s
,
bytes
)
else
s
.
encode
(
'UTF-8'
)
n
=
to_bytes
if
six
.
PY2
else
to_text
Back
|
FazBrowse Home
|
New Git URL