Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Sébastien DA ROCHA
sakia
Commits
28d96585
Commit
28d96585
authored
7 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix encoding
parent
8b0ce409
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sakia/constants.py
+2
-2
2 additions, 2 deletions
src/sakia/constants.py
src/sakia/main.py
+0
-1
0 additions, 1 deletion
src/sakia/main.py
tests/conftest.py
+0
-2
0 additions, 2 deletions
tests/conftest.py
with
2 additions
and
5 deletions
src/sakia/constants.py
+
2
−
2
View file @
28d96585
...
@@ -3,8 +3,8 @@ import yaml
...
@@ -3,8 +3,8 @@ import yaml
MAX_CONFIRMATIONS
=
6
MAX_CONFIRMATIONS
=
6
with
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
root_servers.yml
"
),
'
r
'
)
as
stream
:
with
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
root_servers.yml
"
),
'
r
'
,
encoding
=
"
utf-8
"
)
as
stream
:
ROOT_SERVERS
=
yaml
.
load
(
stream
)
ROOT_SERVERS
=
yaml
.
load
(
stream
)
with
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
g1_licence.html
"
),
'
r
'
)
as
stream
:
with
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
g1_licence.html
"
),
'
r
'
,
encoding
=
"
utf-8
"
)
as
stream
:
G1_LICENCE
=
stream
.
read
()
G1_LICENCE
=
stream
.
read
()
This diff is collapsed.
Click to expand it.
src/sakia/main.py
+
0
−
1
View file @
28d96585
...
@@ -105,7 +105,6 @@ def exception_message(log_lines, exc_info):
...
@@ -105,7 +105,6 @@ def exception_message(log_lines, exc_info):
def
main
():
def
main
():
# activate ctrl-c interrupt
# activate ctrl-c interrupt
locale
.
setlocale
(
locale
.
LC_ALL
,
'
C.UTF-8
'
)
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_DFL
)
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_DFL
)
sakia
=
QApplication
(
sys
.
argv
)
sakia
=
QApplication
(
sys
.
argv
)
...
...
This diff is collapsed.
Click to expand it.
tests/conftest.py
+
0
−
2
View file @
28d96585
...
@@ -21,8 +21,6 @@ from sakia.services import DocumentsService
...
@@ -21,8 +21,6 @@ from sakia.services import DocumentsService
_application_
=
[]
_application_
=
[]
locale
.
setlocale
(
locale
.
LC_ALL
,
'
C.UTF-8
'
)
@pytest.yield_fixture
@pytest.yield_fixture
def
event_loop
():
def
event_loop
():
qapplication
=
get_application
()
qapplication
=
get_application
()
...
...
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