Skip to content
Snippets Groups Projects
Commit 28d96585 authored by inso's avatar inso
Browse files

Fix encoding

parent 8b0ce409
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,8 @@ import yaml
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)
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()
......@@ -105,7 +105,6 @@ def exception_message(log_lines, exc_info):
def main():
# activate ctrl-c interrupt
locale.setlocale(locale.LC_ALL, 'C.UTF-8')
signal.signal(signal.SIGINT, signal.SIG_DFL)
sakia = QApplication(sys.argv)
......
......@@ -21,8 +21,6 @@ from sakia.services import DocumentsService
_application_ = []
locale.setlocale(locale.LC_ALL, 'C.UTF-8')
@pytest.yield_fixture
def event_loop():
qapplication = get_application()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment