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 ...@@ -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()
...@@ -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)
......
...@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment