Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
klaus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jonashaag
klaus
Commits
3b8e44ef
Commit
3b8e44ef
authored
2 years ago
by
Jonas Haag
Browse files
Options
Downloads
Patches
Plain Diff
Drop six
parent
ad3920ac
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
klaus/highlighting.py
+5
-1
5 additions, 1 deletion
klaus/highlighting.py
klaus/utils.py
+6
-2
6 additions, 2 deletions
klaus/utils.py
setup.py
+0
-1
0 additions, 1 deletion
setup.py
with
12 additions
and
5 deletions
Dockerfile
+
1
−
1
View file @
3b8e44ef
FROM
alpine:edge
RUN
echo
http://dl-cdn.alpinelinux.org/alpine/edge/testing
>>
/etc/apk/repositories
&&
\
apk add
--no-cache
uwsgi-python3 git ctags
py3-six
py3-markupsafe py3-pygments
\
apk add
--no-cache
uwsgi-python3 git ctags py3-markupsafe py3-pygments
\
py3-dulwich py3-humanize py3-flask py3-flask-markdown py3-docutils
RUN
apk add
--no-cache
python3-dev py3-pip gcc musl-dev
&&
\
...
...
This diff is collapsed.
Click to expand it.
klaus/highlighting.py
+
5
−
1
View file @
3b8e44ef
from
six.moves
import
filter
try
:
# Python < 3
from
itertools
import
ifilter
as
filter
except
ImportError
:
pass
from
pygments
import
highlight
from
pygments.lexers
import
(
...
...
This diff is collapsed.
Click to expand it.
klaus/utils.py
+
6
−
2
View file @
3b8e44ef
...
...
@@ -8,7 +8,6 @@ import mimetypes
import
locale
import
warnings
import
subprocess
import
six
try
:
import
chardet
...
...
@@ -136,7 +135,12 @@ def decode_from_git(b):
def
force_unicode
(
s
):
"""
Do all kinds of magic to turn `s` into unicode
"""
# It's already unicode, don't do anything:
if
isinstance
(
s
,
six
.
text_type
):
try
:
# Python < 3
text_type
=
unicode
except
NameError
:
text_type
=
str
if
isinstance
(
s
,
text_type
):
return
s
last_exc
=
None
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
0
−
1
View file @
3b8e44ef
...
...
@@ -16,7 +16,6 @@ def install_data_files_hack():
install_data_files_hack
()
requires
=
[
"
six
"
,
"
flask
"
,
"
Werkzeug>=0.15.0
"
,
"
pygments
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment